mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-05-03 03:10:34 +00:00
Update PlatformThread.java
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user