Skip to content

fix(macOS): no dock icon on tray launch and bring new windows into focus - #313

Open
lilfer wants to merge 2 commits into
claration:mainfrom
lilfer:fix/macos-tray-start
Open

lilfer wants to merge 2 commits into
claration:mainfrom
lilfer:fix/macos-tray-start

Conversation

@lilfer

@lilfer lilfer commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

This PR fixes two issues on macOS:

  • starting the app with --tray (at login) shows it in the dock instead of only the menu bar
  • opening a window from menu bar -> Open does not bring the new window into focus

These two issues were introduced in #154 and this PR partially reverts it.

The PR didn't give any detail so I'm not sure why it changed set_main_window_visible(main_window.is_some()) to set_main_window_visible(true).
I imagine that app.activate() caused the crash on earlier macOS as it's macOS 14+, so I added a available!(macos = 14.0) guard.

Tested on macOS 27 only.

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