fix: re-hide macos dock icon after parentless dialogs - #3100
Merged
Conversation
Member
|
should this logic be within electron-menubar based on this config param being set? Line 34 in c83528d |
|
This was referenced Jul 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary
Since v7.0.0 the macOS dock icon occasionally reappears even though Gitify runs as a dock-hidden (accessory) app, and only a restart re-hides it.
Investigation
Tested live on macOS by driving the real built app (hidden window,
setVisibleOnAllWorkspaces, accessory policy) and measuringapp.dock.isVisible():app.dock.hide()can be silently dropped when it races an app activation transition. In the experiment,hide()called 500ms after the dock became visible left the icon showing; a laterhide()succeeded.electron-menubarcallsdock.hide()very early in startup, so a lost race there leaves the icon stuck for the whole session. A restart re-rolls the race, which matches "occasionally showing" + "restart restores it".Fix
electron-menubarper review feedback, since the library owns theshowDockIcon: falsecontract: fix: re-assert hidden dock after startup hide race electron-menubar#123, released as10.1.4. This PR bumps the dependency and drops the app-level copy.Tests
updater.test.ts: dismissing the update dialog re-hides the dock.first-run.test.ts: the dock is re-hidden after the prompt closes.Full suite passes (1198 tests),
pnpm checkandtsc --noEmitclean.Closes #3069