mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-09-08 11:31:22 -04:00
Fix close behaviour not being respected
This commit is contained in:
1 file changed
+3
-3
@@ -23,12 +23,12 @@ public class CloseBehaviourDialog {
|
||||
|
||||
public static boolean showIfNeeded() {
|
||||
if (AppOperationMode.isInShutdown()) {
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
boolean set = AppCache.getBoolean("closeBehaviourSet", false);
|
||||
if (set) {
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
Property<CloseBehaviour> prop =
|
||||
@@ -67,6 +67,6 @@ public class CloseBehaviourDialog {
|
||||
oked.set(true);
|
||||
}));
|
||||
modal.showAndWait();
|
||||
return oked.get();
|
||||
return !oked.get();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user