fix: 安装整合包时任务弹窗可能空白 (#5550)

Co-authored-by: Glavo <zjx001202@gmail.com>
This commit is contained in:
CiiLu
2026-02-17 22:49:55 +08:00
committed by GitHub
parent e25e7c4dbd
commit 5e5d777dae
2 changed files with 3 additions and 3 deletions

View File

@@ -139,7 +139,7 @@ public final class ModpackSelectionPage extends VBox implements WizardPage {
} else { } else {
handler.reject(e.getMessage()); handler.reject(e.getMessage());
} }
}).executor(true), i18n("message.downloading"), TaskCancellationAction.NORMAL); }), i18n("message.downloading"), TaskCancellationAction.NORMAL);
} else { } else {
// otherwise we still consider the file as modpack zip file // otherwise we still consider the file as modpack zip file
// since casually the url may not ends with ".zip" // since casually the url may not ends with ".zip"
@@ -156,7 +156,7 @@ public final class ModpackSelectionPage extends VBox implements WizardPage {
} else { } else {
handler.reject(e.getMessage()); handler.reject(e.getMessage());
} }
}).executor(true), }),
i18n("message.downloading"), i18n("message.downloading"),
TaskCancellationAction.NORMAL TaskCancellationAction.NORMAL
); );

View File

@@ -103,7 +103,7 @@ public final class Versions {
i18n("install.failed.downloading.detail", file.getFile().getUrl()) + "\n" + StringUtils.getStackTrace(e), i18n("install.failed.downloading.detail", file.getFile().getUrl()) + "\n" + StringUtils.getStackTrace(e),
i18n("download.failed.no_code"), MessageDialogPane.MessageType.ERROR); i18n("download.failed.no_code"), MessageDialogPane.MessageType.ERROR);
} }
}).executor(true), }),
i18n("message.downloading"), i18n("message.downloading"),
TaskCancellationAction.NORMAL TaskCancellationAction.NORMAL
); );