From dfd7dc05088a36e76d030d549a67ce571bef8ff7 Mon Sep 17 00:00:00 2001 From: yj <1336058017@qq.com> Date: Tue, 13 Aug 2024 09:41:02 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=80=E5=87=BA=E8=AE=BE=E7=BD=AE=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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() }