退出设置优化
This commit is contained in:
parent
a50aa756e5
commit
dfd7dc0508
|
|
@ -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()
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue