Repository navigation
feat(settings): a switch to hide the tray icon on Windows and Linux - #1934
Conversation
Settings → General → "Show Filee in the system tray" reuses the macOS menu bar preference (ShowMenuBarIcon), so the tray icon follows it on every platform. When it is off on Windows or Linux, a caption says Filee keeps running and opens again from the Start menu or the app launcher. Fixes KnifeLemon#1867 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
KnifeLemon
left a comment
There was a problem hiding this comment.
Thanks, @YusufMntm! I read the whole diff. CI is green on every leg, including both macOS ones.
What I checked
- Reusing
ShowMenuBarIconis safe. Windows and Linux never showed the switch, so the saved value there is the defaulttrue. Nobody's icon disappears after the update, and no schema step is needed. - Getting back in works as the caption says. A later launch with no files reaches
HandleCommandLinewithfirstLaunch: false, which callsShowMain(). - macOS is unchanged. It keeps the same label key, the coloured-icon switch stays macOS-only, and so does the empty tooltip.
- The two keys are in all 23 files, and the ko text uses 해요체.
One optional suggestion (not blocking). Suppose the icon is hidden and When I close the window is Keep Filee running in the tray. Closing the window then hides Filee, and the only ways to quit are to open it again and change that setting, or to use Task Manager. The default (Ask every time) still offers Quit, so this only affects people who picked the tray. If you like, the hint could end with something like "To quit Filee, set When I close the window to Quit Filee." It's fine to merge without it.
CHANGELOG.md is main's; this PR's lines go in with the maintainers' CHANGELOG catch-up. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
I merged |
Lines for KnifeLemon#1381 (macOS updates), KnifeLemon#1698 (portable updates), KnifeLemon#1913, KnifeLemon#1934, KnifeLemon#1915, KnifeLemon#1935, KnifeLemon#1947, KnifeLemon#1864, KnifeLemon#1831, KnifeLemon#1910, KnifeLemon#1918 and KnifeLemon#1919. The contributors' own lines (left out of their PRs to avoid CHANGELOG conflicts) are used where they wrote one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
What does this change?
Windows and Linux get the switch macOS already has: Settings → General → Show Filee in the system tray hides Filee's tray icon while Filee keeps running. Fixes #1867.
AppSettings.ShowMenuBarIcon(default on), so there's no new setting, schema step or migration.TrayServicenow setsIsVisiblefrom it on every platform; the empty macOS tooltip and the template icon stay macOS-only.general.show_menu_bar_iconon macOS (unchanged) and the newgeneral.show_tray_iconon Windows and Linux. The coloured-icon switch stays macOS-only.general.tray_icon_hidden) says Filee keeps running and opens again from the Start menu or the app launcher. That works because a second launch is forwarded to the running instance, which shows the main window (SingleInstance/ListenForLaterLaunches→HandleCommandLine→ShowMain).i18n/*.jsonfiles, aftergeneral.colored_menu_bar_icon.Type of change
How was it tested?
dotnet format --verify-no-changes(changed .cs files)dotnet testfiltered toCloseActionTests,TrayServiceTests,General_page_icon_rows_follow_platform_and_saved_valuesandLocalizationTests(250 passed, none skipped)Changed tests:
TrayServiceTests.Tray_visibility_follows_preference_on_mac_and_other_platforms: on a non-macOS platform the tray icon now follows the preference (it was always visible before).CloseActionTests: on a non-macOS platform the page shows the tray label, toggling savesShowMenuBarIconwithout touching the close action, and the hint shows only while the icon is off.RenderTests.General_page_icon_rows_follow_platform_and_saved_values: the switch is visible on every platform with the right label; the hint appears only on Windows/Linux with the icon off.I didn't try it in the running app, so I haven't watched the icon leave and come back in the real Windows tray or a Linux StatusNotifier host. The tests check
TrayIcon.IsVisibleheadlessly.Checklist
src/Filee.App/Assets/i18n/*.jsonfilesTHIRD-PARTY-NOTICES.md(none)🤖 Generated with Claude Code