mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-11-15 03:31:15 +03:00
[FIX][EXPERIMENTAL] Скачивание zip архивом
This commit is contained in:
parent
2e85180dc1
commit
b985ae15a4
1 changed files with 1 additions and 1 deletions
|
@ -191,7 +191,7 @@ public UpdateRequestEvent requestDo(StandartClientWebSocketService service) thro
|
||||||
startTime = Instant.now();
|
startTime = Instant.now();
|
||||||
updateState("UnknownFile", 0L, 100);
|
updateState("UnknownFile", 0L, 100);
|
||||||
ListDownloader listDownloader = new ListDownloader();
|
ListDownloader listDownloader = new ListDownloader();
|
||||||
if(e.zip)
|
if(e.zip && !adds.isEmpty())
|
||||||
{
|
{
|
||||||
listDownloader.downloadZip(e.url, dir, this::updateState, (add) -> totalDownloaded += add);
|
listDownloader.downloadZip(e.url, dir, this::updateState, (add) -> totalDownloaded += add);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue