fix style
Some checks are pending
Build / windows (arm64) (push) Waiting to run
Build / windows (ia32) (push) Waiting to run
Build / windows (x64) (push) Waiting to run
Build / windows7 (ia32) (push) Waiting to run
Build / windows7 (x64) (push) Waiting to run
Build / linux (arm64) (push) Waiting to run
Build / linux (x64) (push) Waiting to run
Build / macos (arm64) (push) Waiting to run
Build / macos (x64) (push) Waiting to run
Build / updater (push) Blocked by required conditions
Build / aur-release-updater (mihomo-party) (push) Blocked by required conditions
Build / aur-release-updater (mihomo-party-bin) (push) Blocked by required conditions
Build / aur-release-updater (mihomo-party-electron) (push) Blocked by required conditions
Build / aur-release-updater (mihomo-party-electron-bin) (push) Blocked by required conditions
Build / aur-git-updater (push) Waiting to run
Build / Update WinGet Package (push) Blocked by required conditions
Build / Update Homebrew cask (push) Blocked by required conditions

This commit is contained in:
pompurin404 2024-10-09 21:34:22 +08:00
parent 72c1acdfd2
commit 14075c6b9b
No known key found for this signature in database

View File

@ -196,31 +196,34 @@ const GeneralConfig: React.FC = () => {
}}
/>
</SettingItem>
<SettingItem title="根据网速旋转悬浮窗图标" divider>
<Switch
size="sm"
isSelected={spinFloatingIcon}
onValueChange={async (v) => {
await patchAppConfig({ spinFloatingIcon: v })
window.electron.ipcRenderer.send('updateFloatingWindow')
}}
/>
</SettingItem>
{showFloating && (
<SettingItem title="禁用托盘图标" divider>
<Switch
size="sm"
isSelected={disableTray}
onValueChange={async (v) => {
await patchAppConfig({ disableTray: v })
if (v) {
closeTrayIcon()
} else {
showTrayIcon()
}
}}
/>
</SettingItem>
<>
<SettingItem title="根据网速旋转悬浮窗图标" divider>
<Switch
size="sm"
isSelected={spinFloatingIcon}
onValueChange={async (v) => {
await patchAppConfig({ spinFloatingIcon: v })
window.electron.ipcRenderer.send('updateFloatingWindow')
}}
/>
</SettingItem>
<SettingItem title="禁用托盘图标" divider>
<Switch
size="sm"
isSelected={disableTray}
onValueChange={async (v) => {
await patchAppConfig({ disableTray: v })
if (v) {
closeTrayIcon()
} else {
showTrayIcon()
}
}}
/>
</SettingItem>
</>
)}
{platform !== 'linux' && (
<>