diff --git a/src/renderer/src/components/settings/general-config.tsx b/src/renderer/src/components/settings/general-config.tsx index 00c1cb4..936cea2 100644 --- a/src/renderer/src/components/settings/general-config.tsx +++ b/src/renderer/src/components/settings/general-config.tsx @@ -196,31 +196,34 @@ const GeneralConfig: React.FC = () => { }} /> - - { - await patchAppConfig({ spinFloatingIcon: v }) - window.electron.ipcRenderer.send('updateFloatingWindow') - }} - /> - + {showFloating && ( - - { - await patchAppConfig({ disableTray: v }) - if (v) { - closeTrayIcon() - } else { - showTrayIcon() - } - }} - /> - + <> + + { + await patchAppConfig({ spinFloatingIcon: v }) + window.electron.ipcRenderer.send('updateFloatingWindow') + }} + /> + + + { + await patchAppConfig({ disableTray: v }) + if (v) { + closeTrayIcon() + } else { + showTrayIcon() + } + }} + /> + + )} {platform !== 'linux' && ( <>