Skip to content

feat: add hide Dock icon option in Settings#5

Merged
xsharp merged 1 commit intomainfrom
feat/hide-dock-option
Mar 9, 2026
Merged

feat: add hide Dock icon option in Settings#5
xsharp merged 1 commit intomainfrom
feat/hide-dock-option

Conversation

@xsharp
Copy link
Copy Markdown
Contributor

@xsharp xsharp commented Mar 9, 2026

Summary

  • Add a toggle in Settings > General to hide the app's Dock icon on macOS
  • App runs as tray-only when Dock icon is hidden
  • Uses tauri::ActivationPolicy for native macOS Dock control
  • Setting persists and auto-applies on app startup
  • Option only visible on macOS platform

Changes

  • Backend: AppSettings.hide_dock field + set_dock_visible Tauri command
  • Frontend: Toggle switch in General tab (macOS only) with dock API call
  • i18n: Added en-US / zh-CN translations

Test plan

  • Open Settings > General on macOS
  • Toggle "Hide Dock Icon" on — verify Dock icon disappears
  • Toggle off — verify Dock icon reappears
  • Restart app with setting enabled — verify Dock icon stays hidden
  • Verify option is not shown on non-macOS platforms

Closes #3

🤖 Generated with Claude Code

Add a toggle in Settings > General to hide the app's Dock icon on macOS,
allowing the app to run as a tray-only application.

Closes #3

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@xsharp xsharp merged commit fa774a1 into main Mar 9, 2026
1 check passed
@xsharp xsharp deleted the feat/hide-dock-option branch March 9, 2026 04:05
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.

feat: add hide Dock icon option in Settings General

1 participant