mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-09-15 14:56:05 -04:00
Change task.test() to executor.test()
This commit is contained in:
parent
3b42ba9375
commit
38f27d134d
@ -166,7 +166,7 @@ public final class UpdateHandler {
|
||||
TaskExecutor executor = task.executor();
|
||||
Region dialog = Controllers.taskDialog(executor, i18n("message.downloading"), "", null);
|
||||
thread(() -> {
|
||||
boolean success = task.test();
|
||||
boolean success = executor.test();
|
||||
Platform.runLater(() -> dialog.fireEvent(new DialogCloseEvent()));
|
||||
if (success) {
|
||||
try {
|
||||
|
Loading…
x
Reference in New Issue
Block a user