Change task.test() to executor.test()
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user