commit cc8395d6b44a3892dac41117fefcd8517430cdc8
parent a15d7e7dc7ce08c50ea686ec041ebdd00586efc1
Author: Michael Camilleri <[email protected]>
Date: Mon, 20 Apr 2026 21:11:04 +0900
Fix macOS version opening during synchronisation
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/ListlessMac/ListlessMacApp.swift b/ListlessMac/ListlessMacApp.swift
@@ -55,6 +55,9 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSMenuItemValidation {
}
func applicationShouldHandleReopen(_ sender: NSApplication, hasVisibleWindows flag: Bool) -> Bool {
+ if NSApp.activationPolicy() == .accessory {
+ return false
+ }
if !flag {
promoteAndShowWindowIfNeeded()
}