Linux 点击托盘时将显示主界面(#2840)

This commit is contained in:
lyswhut
2026-06-04 20:54:55 +08:00
parent cbcbe3e8c8
commit ecdc018fa1
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -2,6 +2,7 @@
- 优化kw歌单列表数据显示 - 优化kw歌单列表数据显示
- 同步服务在连接时允许URL重定向 - 同步服务在连接时允许URL重定向
- Linux 点击托盘时将显示主界面(#2840)
### 修复 ### 修复
+1 -1
View File
@@ -150,7 +150,7 @@ export const createTray = () => {
// tray.setToolTip('LX Music') // tray.setToolTip('LX Music')
// createMenu() // createMenu()
tray.setIgnoreDoubleClickEvents(true) tray.setIgnoreDoubleClickEvents(true)
if (isWin) { if (!isMac) {
tray.on('click', () => { tray.on('click', () => {
showMainWindow() showMainWindow()
}) })