diff --git a/src/App.tsx b/src/App.tsx index bf6df5d..bcf58cf 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -182,7 +182,12 @@ const App: React.FC = () => { setIsState(false) window.electron.onQuit(async () => { if (storage.getItem('isTips') === 'true') { - window.electron.quit() + const setting = JSON.parse(storage.getItem('setting') as string) + if (setting.closeSetting === 'hide') { + window.electron.setViewStatus(setting.closeSetting) + } else { + window.electron.quit() + } } else { quitTipsRef.current.changeModal() }