diff --git a/src/logic/Window.swift b/src/logic/Window.swift index 86b3699d..be065194 100644 --- a/src/logic/Window.swift +++ b/src/logic/Window.swift @@ -181,7 +181,7 @@ class Window { App.app.window(withWindowNumber: Int(cgWindowId!))?.makeKeyAndOrderFront(nil) Windows.previewFocusedWindowIfNeeded() } else if isWindowlessApp || cgWindowId == nil || Preferences.onlyShowApplications() { - if let bundleUrl = bundleUrl { + if let bundleUrl = bundleUrl, isWindowlessApp { if (try? NSWorkspace.shared.launchApplication(at: bundleUrl, configuration: [:])) == nil { application.runningApplication.activate(options: .activateAllWindows) }