Update PlatformThread.java

This commit is contained in:
crschnick
2026-03-07 18:44:29 +00:00
parent fa03f320e9
commit 2e0e2acd7c
2 changed files with 12 additions and 1 deletions
@@ -193,6 +193,16 @@ public class AppMainWindow {
shown = true;
}
public void hide() {
PlatformThread.runLaterIfNeeded(() -> {
if (!stage.isShowing()) {
return;
}
stage.hide();
});
}
public void focus() {
if (AppPrefs.get() != null
&& !AppPrefs.get().focusWindowOnNotifications().get()) {
@@ -266,7 +266,8 @@ public class PlatformThread {
return false;
}
if (AppOperationMode.isInShutdown()) {
// Some other components might already be disposed
if (AppOperationMode.isInShutdownHook()) {
return false;
}