Change task.test() to executor.test()

This commit is contained in:
yushijinhun 2018-08-01 12:18:07 +08:00
parent 3b42ba9375
commit 38f27d134d
No known key found for this signature in database
GPG Key ID: 5BC167F73EA558E4

View File

@ -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 {