Skip to content

Add option to hide menu bar icon#1

Merged
andyhtran merged 1 commit intomainfrom
ft-no-menu
Apr 30, 2026
Merged

Add option to hide menu bar icon#1
andyhtran merged 1 commit intomainfrom
ft-no-menu

Conversation

@andyhtran
Copy link
Copy Markdown
Owner

Summary

  • Adds a "Show menu bar icon" toggle in Settings → Appearance, bound via @AppStorage to MenuBarExtra(isInserted:)
  • Replaces the SwiftUI Settings scene with an AppDelegate-owned SettingsWindowController (NSWindow + NSToolbar) so Settings stays reachable when the icon is hidden — re-launching from Spotlight/Finder routes through applicationShouldHandleReopen
  • SettingsView switches on nav.selectedTab instead of using TabView, since the toolbar drives selection

Test plan

  • just dev — Settings opens from the menu, toolbar tabs switch correctly
  • Toggle "Show menu bar icon" off — icon disappears immediately
  • With icon hidden, re-launch CopyCat from Spotlight — Settings window appears
  • Toggle back on — icon reappears
  • "Configure…" from the SSH hosts submenu still jumps to the Broadcast tab

🤖 Generated with Claude Code

Replaces the SwiftUI Settings scene with an AppDelegate-owned
NSWindowController so Settings stays reachable via Spotlight/Finder
re-launch when the menu bar icon is hidden.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@andyhtran andyhtran merged commit 02bca51 into main Apr 30, 2026
1 check passed
@andyhtran andyhtran deleted the ft-no-menu branch April 30, 2026 02:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant