fix: 安装整合包时任务弹窗可能空白 (#5550)
Co-authored-by: Glavo <zjx001202@gmail.com>
This commit is contained in:
@@ -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
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -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
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user