优化逻辑

This commit is contained in:
lyswhut
2020-06-24 22:55:47 +08:00
parent 69368b884f
commit 93bab6bbdd
3 changed files with 30 additions and 37 deletions
+3 -8
View File
@@ -61,14 +61,9 @@ const winEvent = lyricWindow => {
lyricWindow.once('ready-to-show', () => {
lyricWindow.show()
let config = global.appSetting.desktopLyric
global.modules.lyricWindow.setBounds({
height: config.height,
width: config.width,
y: config.y,
x: config.x,
})
global.lx_event.winLyric.inited()
if (global.appSetting.desktopLyric.isLock) {
global.modules.lyricWindow.setIgnoreMouseEvents(true, { forward: false })
}
})
}