From b9c3c3506ee5296437abf0ff93de33bc162287ed Mon Sep 17 00:00:00 2001 From: lyswhut Date: Sat, 7 Mar 2026 14:11:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=A1=8C=E9=9D=A2=E6=AD=8C?= =?UTF-8?q?=E8=AF=8D=E7=9A=84=E9=BC=A0=E6=A0=87=E6=82=AC=E5=81=9C=E9=9A=90?= =?UTF-8?q?=E8=97=8F=E5=8A=9F=E8=83=BD=EF=BC=8C=E4=BC=98=E5=8C=96=E9=BC=A0?= =?UTF-8?q?=E6=A0=87=E4=BA=8B=E4=BB=B6=E5=A4=84=E7=90=86=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/modules/winLyric/config.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main/modules/winLyric/config.ts b/src/main/modules/winLyric/config.ts index 08bef36e..8a4c6991 100644 --- a/src/main/modules/winLyric/config.ts +++ b/src/main/modules/winLyric/config.ts @@ -31,9 +31,13 @@ export const setLrcConfig = (keys: Array, setting: Partial< if (keys.includes('desktopLyric.isHoverHide') && isHoverHide != global.lx.appSetting['desktopLyric.isHoverHide']) { isHoverHide = global.lx.appSetting['desktopLyric.isHoverHide'] if (!isLinux) { - setIgnoreMouseEvents(global.lx.appSetting['desktopLyric.isLock'], { forward: global.lx.appSetting['desktopLyric.isHoverHide'] }) + setIgnoreMouseEvents(global.lx.appSetting['desktopLyric.isLock'], { forward: isHoverHide }) + if (isHoverHide) { + mouseCheckTools.runCheck(sendMouseLeave) + } else { + mouseCheckTools.cacnelCheck() + } } - mouseCheckTools.runCheck(sendMouseLeave) } if (keys.includes('desktopLyric.isAlwaysOnTop') && isAlwaysOnTop != global.lx.appSetting['desktopLyric.isAlwaysOnTop']) { isAlwaysOnTop = global.lx.appSetting['desktopLyric.isAlwaysOnTop']