mirror of
https://gh.catmak.name/https://github.com/mihomo-party-org/mihomo-party
synced 2025-12-27 21:20:29 +08:00
style: adjust disableTray position
This commit is contained in:
parent
e176f6db14
commit
71f7b7b3c0
@ -272,22 +272,22 @@ const GeneralConfig: React.FC = () => {
|
|||||||
</Tooltip>
|
</Tooltip>
|
||||||
</div>
|
</div>
|
||||||
</SettingItem>
|
</SettingItem>
|
||||||
<SettingItem title={t('settings.disableTray')} divider>
|
|
||||||
<Switch
|
|
||||||
size="sm"
|
|
||||||
isSelected={disableTray}
|
|
||||||
onValueChange={async (v) => {
|
|
||||||
await patchAppConfig({ disableTray: v })
|
|
||||||
if (v) {
|
|
||||||
closeTrayIcon()
|
|
||||||
} else {
|
|
||||||
showTrayIcon()
|
|
||||||
}
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
</SettingItem>
|
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
<SettingItem title={t('settings.disableTray')} divider>
|
||||||
|
<Switch
|
||||||
|
size="sm"
|
||||||
|
isSelected={disableTray}
|
||||||
|
onValueChange={async (v) => {
|
||||||
|
await patchAppConfig({ disableTray: v })
|
||||||
|
if (v) {
|
||||||
|
closeTrayIcon()
|
||||||
|
} else {
|
||||||
|
showTrayIcon()
|
||||||
|
}
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</SettingItem>
|
||||||
{platform !== 'linux' && (
|
{platform !== 'linux' && (
|
||||||
<>
|
<>
|
||||||
<SettingItem title={t('settings.proxyInTray')} divider>
|
<SettingItem title={t('settings.proxyInTray')} divider>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user