Skip to content

Commit

Permalink
修复macOS下的软件系统菜单中的退出功能不会完全退出软件的问题(#1148
Browse files Browse the repository at this point in the history
  • Loading branch information
lyswhut committed Jan 18, 2023
1 parent c003efe commit c1cff1e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions publish/changeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
- 修复声音输出设备更改时后的自动暂停播放设置无效的问题
- 重写桌面歌词窗口坐标的计算逻辑,修复桌面歌词移动到最边缘时,某些情况下在启用歌词后会出现窗口偏移的问题(远古bug了)
- 修复随机播放模式下使用稍后播放功能播放我的列表的歌曲时,切换下一曲永远是当前歌曲的问题(#1147
- 修复macOS下的软件系统菜单中的退出功能不会完全退出软件的问题(#1148
4 changes: 2 additions & 2 deletions src/main/modules/appMenu.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { app, Menu } from 'electron'
import { isMac } from '@common/utils'
import { quitApp } from '@main/app'


export default () => {
Expand All @@ -17,7 +16,8 @@ export default () => {
label: '退出',
accelerator: 'Command+Q',
click() {
quitApp()
global.lx.isSkipTrayQuit = true
app.quit()
},
},
],
Expand Down

0 comments on commit c1cff1e

Please sign in to comment.