Fix: There are two progress bars when updating HMCL (#3793)
This commit is contained in:
@@ -113,9 +113,8 @@ public final class UpdateHandler {
|
|||||||
|
|
||||||
Task<?> task = new HMCLDownloadTask(version, downloaded);
|
Task<?> task = new HMCLDownloadTask(version, downloaded);
|
||||||
|
|
||||||
TaskExecutor executor = task.executor(false);
|
TaskExecutor executor = task.executor();
|
||||||
Controllers.taskDialog(executor, i18n("message.downloading"), TaskCancellationAction.NORMAL);
|
Controllers.taskDialog(executor, i18n("message.downloading"), TaskCancellationAction.NORMAL);
|
||||||
executor.start();
|
|
||||||
thread(() -> {
|
thread(() -> {
|
||||||
boolean success = executor.test();
|
boolean success = executor.test();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user