From ecdc018fa1a24f99ab2292b1a60e37e9ac2081df Mon Sep 17 00:00:00 2001 From: lyswhut Date: Thu, 4 Jun 2026 20:54:55 +0800 Subject: [PATCH] =?UTF-8?q?Linux=20=E7=82=B9=E5=87=BB=E6=89=98=E7=9B=98?= =?UTF-8?q?=E6=97=B6=E5=B0=86=E6=98=BE=E7=A4=BA=E4=B8=BB=E7=95=8C=E9=9D=A2?= =?UTF-8?q?=EF=BC=88#2840=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- publish/changeLog.md | 1 + src/main/modules/tray.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/publish/changeLog.md b/publish/changeLog.md index 04d24c8f..b7ac4082 100644 --- a/publish/changeLog.md +++ b/publish/changeLog.md @@ -2,6 +2,7 @@ - 优化kw歌单列表数据显示 - 同步服务在连接时允许URL重定向 +- Linux 点击托盘时将显示主界面(#2840) ### 修复 diff --git a/src/main/modules/tray.ts b/src/main/modules/tray.ts index e371d276..7043d555 100644 --- a/src/main/modules/tray.ts +++ b/src/main/modules/tray.ts @@ -150,7 +150,7 @@ export const createTray = () => { // tray.setToolTip('LX Music') // createMenu() tray.setIgnoreDoubleClickEvents(true) - if (isWin) { + if (!isMac) { tray.on('click', () => { showMainWindow() })