Skip to content

Commit

Permalink
fix: Closing stage needs to be done in a javaFx thread #46
Browse files Browse the repository at this point in the history
  • Loading branch information
jagodevreede committed Nov 27, 2024
1 parent 8730298 commit a617e71
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -452,9 +452,9 @@ public void startUpdate() {
}

public void exitApplication() {
// Don't use Platform.exit() as in native the shutdown hook will not fire (on osx)
stage.close();
// stage close will not fire close event so we need to fire it manually
closeWindowEvent(null);
// Don't use Platform.exit() as in native the shutdown hook will not fire (on osx)
Platform.runLater(() -> stage.close());
}
}

0 comments on commit a617e71

Please sign in to comment.