fix: preserve hidden Dock state on reopen - #774
Conversation
|
The PR Policy check is blocking this PR because required template information is missing. Please update the PR description with:
Screenshots or video are required for UI, UX, settings, onboarding, overlay, menu bar, or visual behavior changes. If this PR has no visual changes, check the no-visual-change box in the template. If this remains incomplete for 48 hours after opening, the PR may be closed. |
Greptile SummaryReapplies the saved Dock visibility preference when LaunchServices externally reopens an already-running app.
|
Description
Re-applies the saved Dock visibility preference when macOS externally reopens an already-running FluidVoice. LaunchServices can restore the bundle's default activation policy during reopen, which made the Dock icon remain visible even when Hide from Dock was enabled.
Type of Change
Related Issue or Discussion
Closes #753
Testing
swiftlint --strict --config .swiftlint.yml Sourcesswiftformat --config .swiftformat SourcesUIElementat 0.1, 0.3, 0.8, 1.5, and 3 seconds. The full suite was attempted: 154 tests passed and 11 tests aborted because of the known local Xcode 26.3/macOS 15.7.7 malloc/SIGABRT runner issue.Screenshots / Video
The proof clip keeps the Dock visible while Codex reopens FluidVoice programmatically, so no mouse click is expected. The app window returns without a FluidVoice Dock icon.
Watch the 6-second Dock reopen proof
Notes
This reuses the existing
applyDockVisibilityPolicy()path and preserves the reopen-suppression guard.