Fix: There are two progress bars when updating HMCL (#3793)

This commit is contained in:
Burning_TNT
2025-04-04 20:54:08 +08:00
committed by GitHub
parent 81b0547610
commit 43c59dad9c

View File

@@ -113,9 +113,8 @@ public final class UpdateHandler {
Task<?> task = new HMCLDownloadTask(version, downloaded);
TaskExecutor executor = task.executor(false);
TaskExecutor executor = task.executor();
Controllers.taskDialog(executor, i18n("message.downloading"), TaskCancellationAction.NORMAL);
executor.start();
thread(() -> {
boolean success = executor.test();