退出设置优化
This commit is contained in:
parent
a50aa756e5
commit
dfd7dc0508
|
|
@ -182,7 +182,12 @@ const App: React.FC = () => {
|
||||||
setIsState(false)
|
setIsState(false)
|
||||||
window.electron.onQuit(async () => {
|
window.electron.onQuit(async () => {
|
||||||
if (storage.getItem('isTips') === 'true') {
|
if (storage.getItem('isTips') === 'true') {
|
||||||
|
const setting = JSON.parse(storage.getItem('setting') as string)
|
||||||
|
if (setting.closeSetting === 'hide') {
|
||||||
|
window.electron.setViewStatus(setting.closeSetting)
|
||||||
|
} else {
|
||||||
window.electron.quit()
|
window.electron.quit()
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
quitTipsRef.current.changeModal()
|
quitTipsRef.current.changeModal()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue