feat: close-to-tray default + system settings entry; bump 1.0.3

This commit is contained in:
Bill committed 2026-09-08 17:00:09 +08:00
1 parent 8f686f56ca
commit 2b3fefafd0
4 files changed
+20 -4

No files matched your search

@@ -317,6 +317,22 @@ export function SystemSettingsTab(): React.JSX.Element {
/>
}
/>
<SettingRow
label="关闭按钮行为"
desc="点击窗口关闭按钮时的动作;最小化到托盘后可在托盘图标右键菜单中退出"
control={
<Select
className="settings-select"
value={settings.system.closeAction ?? 'tray'}
onChange={(value) => void updateSystem({ closeAction: value })}
options={[
{ value: 'tray', label: '最小化到托盘' },
{ value: 'exit', label: '直接退出' },
{ value: 'ask', label: '每次询问' }
]}
/>
}
/>
<SettingRow
label="全局唤起快捷键"
desc="Control+Shift+Alt+T 等,留空禁用"