Skip to content

fix: reopening Capso always shows Preferences - #361

Merged
lzhgus merged 1 commit into
mainfrom
fix/reopen-shows-preferences
Oct 17, 2026
Merged

lzhgus merged 1 commit into
mainfrom
fix/reopen-shows-preferences

Conversation

@lzhgus

@lzhgus lzhgus commented Oct 17, 2026

Copy link
Copy Markdown
Owner

Reported in #247 (comment): after updating, the menu bar icon wasn't visible and there was no way into the app.

  • SwiftUI never forwards applicationShouldHandleReopen to the @NSApplicationDelegateAdaptor delegate. The aevt/rapp event reaches the process but the delegate method is never called, so reopening from Finder or Spotlight did nothing, even with the menu bar icon hidden ([Feature] please add an option to hide the icons in the menu bar #65).
  • Register a handler for the reopen Apple Event directly.
  • Show Preferences on every reopen, not just when the icon is hidden, since the icon can also be crowded out behind the notch.

Tested in the Debug app: a cold launch opens no window; open -a Capso.app while running opens the Settings window.

🤖 Generated with Claude Code

https://claude.ai/code/session_01CEFcqadVpnqXceY8Ke7Szp

SwiftUI never forwards applicationShouldHandleReopen to the adaptor
delegate, so reopening from Finder or Spotlight did nothing even with the
menu bar icon hidden. Handle the reopen Apple Event directly, and show
Preferences regardless of the icon setting since the icon can also be
crowded out behind the notch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CEFcqadVpnqXceY8Ke7Szp
@lzhgus
lzhgus merged commit cd40d8e into main Oct 17, 2026
5 checks passed
@lzhgus
lzhgus deleted the fix/reopen-shows-preferences branch October 17, 2026 16:33
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