Skip to content

Commit 3e61fa9

Browse files
triptuclaude
andcommitted
show panel when app is re-opened from Finder or Spotlight
Without this, double-clicking Flowbar in Applications or launching via Spotlight while it's already running does nothing visible, which is confusing right after install. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent a6f2e4e commit 3e61fa9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Flowbar/Sources/App/AppDelegate.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,13 @@ class AppDelegate: NSObject, NSApplicationDelegate {
4242
}
4343
}
4444

45+
/// Show the panel when the user re-launches the app (e.g. double-click in
46+
/// Applications or Spotlight) while it's already running.
47+
func applicationShouldHandleReopen(_ sender: NSApplication, hasVisibleWindows flag: Bool) -> Bool {
48+
windowManager.showPanel()
49+
return false
50+
}
51+
4552
// MARK: - Shortcut installation
4653

4754
/// Tears down any existing monitors and installs new ones matching the current setting.

0 commit comments

Comments
 (0)