diff --git a/src/renderer/src/components/settings/general-config.tsx b/src/renderer/src/components/settings/general-config.tsx index 00c1cb46..936cea2f 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' && ( <>