Skip to content

Commit 5e5d777

Browse files
CiiLuGlavo
andauthored
fix: 安装整合包时任务弹窗可能空白 (#5550)
Co-authored-by: Glavo <zjx001202@gmail.com>
1 parent e25e7c4 commit 5e5d777

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

HMCL/src/main/java/org/jackhuang/hmcl/ui/download/ModpackSelectionPage.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ private void onChooseRemoteFile() {
139139
} else {
140140
handler.reject(e.getMessage());
141141
}
142-
}).executor(true), i18n("message.downloading"), TaskCancellationAction.NORMAL);
142+
}), i18n("message.downloading"), TaskCancellationAction.NORMAL);
143143
} else {
144144
// otherwise we still consider the file as modpack zip file
145145
// since casually the url may not ends with ".zip"
@@ -156,7 +156,7 @@ private void onChooseRemoteFile() {
156156
} else {
157157
handler.reject(e.getMessage());
158158
}
159-
}).executor(true),
159+
}),
160160
i18n("message.downloading"),
161161
TaskCancellationAction.NORMAL
162162
);

HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/Versions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public static void downloadModpackImpl(Profile profile, String version, RemoteMo
103103
i18n("install.failed.downloading.detail", file.getFile().getUrl()) + "\n" + StringUtils.getStackTrace(e),
104104
i18n("download.failed.no_code"), MessageDialogPane.MessageType.ERROR);
105105
}
106-
}).executor(true),
106+
}),
107107
i18n("message.downloading"),
108108
TaskCancellationAction.NORMAL
109109
);

0 commit comments

Comments
 (0)