Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macOS: Fix missing icon in menu bar #1243

Merged
merged 6 commits into from
Mar 8, 2025
Merged

Conversation

keeshux
Copy link
Member

@keeshux keeshux commented Mar 8, 2025

The first window was closed on launch, but the first window may be the status bar item. This is always the case when the app is launched as a login item because there is no main window. Match main window by internal class name.

"Show" doesn't work on login for the same reason: there's no main window. Nevertheless, observing that the main window is created when the app is opened manually, the trick of relaunching "self" seems to work.

Fixes #1103

@keeshux keeshux self-assigned this Mar 8, 2025
@keeshux keeshux added bug Something isn't working macOS Related to the macOS app labels Mar 8, 2025
@keeshux keeshux added this to the 3.3.0 milestone Mar 8, 2025
@keeshux keeshux merged commit 4645fc8 into master Mar 8, 2025
1 check passed
@keeshux keeshux deleted the bugfix/mac-icon-restart branch March 8, 2025 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working macOS Related to the macOS app
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

macOS: Menu icon may randomly disappear until app restart
1 participant