feat: improve focus in show:apps mode (closes #3951)

This commit is contained in:
lwouis committed 2024-12-09 14:12:06 +01:00
1 parent ac70fcc5f9
commit cb191d60f3
1 file changed
+1 -1
+1 -1
View File
@@ -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)
}