修复macOS下的软件系统菜单中的退出功能不会完全退出软件的问题(#1148)

This commit is contained in:
lyswhut
2023-01-18 17:25:51 +08:00
parent c003efe1e9
commit c1cff1e3c2
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -1,6 +1,5 @@
import { app, Menu } from 'electron'
import { isMac } from '@common/utils'
import { quitApp } from '@main/app'
export default () => {
@@ -17,7 +16,8 @@ export default () => {
label: '退出',
accelerator: 'Command+Q',
click() {
quitApp()
global.lx.isSkipTrayQuit = true
app.quit()
},
},
],