临时修复桌面歌词交互时背景异常的问题

This commit is contained in:
lyswhut
2025-09-19 23:53:45 +08:00
parent a4c118648a
commit 608f63bc9c
3 changed files with 62 additions and 47 deletions
+5 -1
View File
@@ -18,8 +18,12 @@ export const onSettingChanged = (listener: LX.IpcRendererEventListenerParams<Par
export const setWindowBounds = (bounds: LX.DesktopLyric.NewBounds) => {
rendererSend<LX.DesktopLyric.NewBounds>(WIN_LYRIC_RENDERER_EVENT_NAME.set_win_bounds, bounds)
}
let previousResizable: boolean | null = null
export const setWindowResizeable = (resizable: boolean) => {
rendererSend<boolean>(WIN_LYRIC_RENDERER_EVENT_NAME.set_win_resizeable, resizable)
if (previousResizable === resizable) return
previousResizable = resizable
// https://github.com/electron/electron/issues/48352
// rendererSend<boolean>(WIN_LYRIC_RENDERER_EVENT_NAME.set_win_resizeable, resizable)
}
export const sendConnectMainWindowEvent = () => {