mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-05-21 12:11:28 +00:00
Fixed IllegalStateException when trying to show graceful shutdown dialog from non-FX thread
This commit is contained in:
@@ -213,7 +213,7 @@ public class MainController implements ViewController {
|
||||
stage.getIcons().add(new Image(getClass().getResourceAsStream("/window_icon_32.png")));
|
||||
Application.setUserAgentStylesheet(getClass().getResource("/css/win_theme.css").toString());
|
||||
}
|
||||
exitUtil.initExitHandler(this::gracefulShutdown);
|
||||
exitUtil.initExitHandler(() -> Platform.runLater(this::gracefulShutdown));
|
||||
listenToFileOpenRequests(stage);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user