mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-09-17 07:47:57 -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();
|
TaskExecutor executor = task.executor();
|
||||||
Region dialog = Controllers.taskDialog(executor, i18n("message.downloading"), "", null);
|
Region dialog = Controllers.taskDialog(executor, i18n("message.downloading"), "", null);
|
||||||
thread(() -> {
|
thread(() -> {
|
||||||
boolean success = task.test();
|
boolean success = executor.test();
|
||||||
Platform.runLater(() -> dialog.fireEvent(new DialogCloseEvent()));
|
Platform.runLater(() -> dialog.fireEvent(new DialogCloseEvent()));
|
||||||
if (success) {
|
if (success) {
|
||||||
try {
|
try {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user