Skip to content

feat: add close-to-tray toggle in General settings - #1

Open
qicaijie99 wants to merge 1 commit into
wk42worldworld:mainfrom
qicaijie99:feat/close-to-tray
Open

feat: add close-to-tray toggle in General settings#1
qicaijie99 wants to merge 1 commit into
wk42worldworld:mainfrom
qicaijie99:feat/close-to-tray

Conversation

@qicaijie99

Copy link
Copy Markdown

Summary

Add an option to minimize to system tray instead of quitting the app when closing the window.

What changed

  • Add closeToTray setting to General settings page
  • Implement tray icon creation and window hide/show logic in Tauri backend
  • Persist setting via settingsStore

How verified

  • cd desktop && bun run lint — TypeScript type-check passed
  • cd desktop && bun run test — 730 tests passed, 0 failed

Files changed

image image
File Change
desktop/src/pages/Settings.tsx Toggle UI in General section
desktop/src-tauri/src/lib.rs Tray icon and window minimize logic
desktop/src/stores/settingsStore.ts State persistence
desktop/src/types/settings.ts closeToTray type
desktop/src/i18n/locales/{en,ja,ko,zh}.ts Translations

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.

1 participant