mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-18 05:25:40 +09:00
feat(desktop): add start minimized option for launch at login (#3094)
This commit is contained in:
1 parent
c2e7fde5bc
commit
d691047884
46 files changed
+1198
-526
No files matched your search
@@ -160,6 +160,22 @@ const DesktopSettingsTab: React.FC = observer(() => {
|
||||
data-flx="user.desktop-settings-tab.switch.autostart-change"
|
||||
/>
|
||||
)}
|
||||
{isDesktop() && desktopWindowBehavior?.startMinimized !== undefined && (
|
||||
<Switch
|
||||
label={<Trans>Start minimized</Trans>}
|
||||
description={
|
||||
isMac ? (
|
||||
<Trans>When launched at login, start in the menu bar instead of opening the window</Trans>
|
||||
) : (
|
||||
<Trans>When launched at login, start in the system tray instead of opening the window</Trans>
|
||||
)
|
||||
}
|
||||
value={desktopWindowBehavior.startMinimized}
|
||||
disabled={desktopWindowBehaviorBusy || !autostartEnabled || !desktopWindowBehavior.showTrayIcon}
|
||||
onChange={(value) => handleDesktopWindowBehaviorChange({startMinimized: value})}
|
||||
data-flx="user.desktop-settings-tab.switch.start-minimized-change"
|
||||
/>
|
||||
)}
|
||||
{isDesktop() && desktopWindowBehavior && (
|
||||
<>
|
||||
<Switch
|
||||
|
||||
Reference in new issue
Block a user