diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/DownloadPage.java b/HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/DownloadPage.java index 90a72037b0..5aa77bc1aa 100644 --- a/HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/DownloadPage.java +++ b/HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/DownloadPage.java @@ -204,14 +204,14 @@ public void saveAs(RemoteMod.Version file) { return; } - Controllers.taskDialog(Task.composeAsync(() -> { + Controllers.taskDialog( + Task.composeAsync(() -> { FileDownloadTask task = new FileDownloadTask(NetworkUtils.toURL(file.getFile().getUrl()), dest, file.getFile().getIntegrityCheck()); task.setName(file.getName()); return task; }), i18n("message.downloading"), - TaskCancellationAction.NORMAL - ); + TaskCancellationAction.NORMAL); } @Override