fix(macos): always show dock icon setting now works during recording#1871
Open
ManthanNimodiya wants to merge 1 commit into
Open
fix(macos): always show dock icon setting now works during recording#1871ManthanNimodiya wants to merge 1 commit into
ManthanNimodiya wants to merge 1 commit into
Conversation
Contributor
Author
|
hey @richiemcilroy , please have a review and lmk for any changes |
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
The "Always show dock icon" in the setting had no effect, the dock icon would still disappear when recording started regardless of the toggle.
A previous fix (preventing duplicate dock icons) added a bail-early in
sync_macos_dock_visibilitythat ran before reading the user's preference, so the sync was unconditionally skipped whenever recording was active.The toggle existed but did nothing.
The fix reads the
hide_dock_iconsetting first, then only bails when the user actually wants the dock hidden.If the setting is off (always show), the sync continues and keeps the dock icon visible throughout the recording.
Fixes #1843
Changes
apps/desktop/src-tauri/src/permissions.rs: readhide_dock_iconbefore the panel window guard; only bail when both conditions are trueTest Plan
Greptile Summary
This PR fixes a bug where the "Always show dock icon" setting had no effect during recording on macOS. A prior guard that prevented duplicate dock icons used an unconditional early return whenever a panel window was visible, which ran before the user's
hide_dock_iconpreference was ever read.should_hide_dockvalue is now fetched before the panel-window check, and the early return is conditioned onhas_visible_panel_window && should_hide_dock— so recording no longer forces the dock to hide when the user has opted to always show it.Confidence Score: 5/5
Safe to merge — single-file, minimal logic change that correctly restores the dock icon when the user prefers it visible.
The change is surgical: one variable read is moved earlier and one boolean condition is added to the guard. Both branches of the user preference (hide vs. show dock) were manually tested per the test plan, the duplicate-dock-icon fix is preserved when should_hide_dock is true, and there are no side-effects on unrelated code paths.
No files require special attention.
Important Files Changed
should_hide_dockread before the panel-window bail-early guard and gates the early return on both conditions, fixing dock visibility when "Always show dock icon" is enabled during recording.Reviews (1): Last reviewed commit: "fix(macos): respect hide_dock_icon setti..." | Re-trigger Greptile