diff --git a/src/main/modules/winLyric/index.js b/src/main/modules/winLyric/index.js index 9b0471dd..f4d6293a 100644 --- a/src/main/modules/winLyric/index.js +++ b/src/main/modules/winLyric/index.js @@ -27,7 +27,7 @@ const setLyricsConfig = debounce(config => { const winEvent = lyricWindow => { // let bounds // lyricWindow.on('close', event => { - // if (global.isQuitting || !global.appSetting.tray.isToTray || (!isWin && !global.isTrafficLightClose)) { + // if (global.isQuitting || !global.appSetting.tray.isShow || (!isWin && !global.isTrafficLightClose)) { // lyricWindow.setProgressBar(-1) // return // } diff --git a/src/main/rendererEvents/winEvent.js b/src/main/rendererEvents/winEvent.js index 6d797ec9..89fad810 100644 --- a/src/main/rendererEvents/winEvent.js +++ b/src/main/rendererEvents/winEvent.js @@ -5,7 +5,7 @@ global.isTrafficLightClose = false // 是否点击软件上的关闭按钮关闭 module.exports = mainWindow => { mainWindow.on('close', event => { - if (global.isQuitting || !global.appSetting.tray.isToTray || (!isWin && !global.isTrafficLightClose)) { + if (global.isQuitting || !global.appSetting.tray.isShow || (!isWin && !global.isTrafficLightClose)) { mainWindow.setProgressBar(-1) global.lx_event.winLyric.close() return diff --git a/src/renderer/event/index.js b/src/renderer/event/index.js index 865737e8..83ded121 100644 --- a/src/renderer/event/index.js +++ b/src/renderer/event/index.js @@ -29,7 +29,7 @@ eventHub.on(baseName.bindKey, () => { // 软件内快捷键的最小化触发时 // 如果已启用托盘,则隐藏程序,否则最小化程序 https://github.com/lyswhut/lx-music-desktop/issues/603 - if (appHotKeyConfig.local.keys[key].action == hotKeyNamesCommon.min.action && global.appSetting.tray.isToTray) { + if (appHotKeyConfig.local.keys[key].action == hotKeyNamesCommon.min.action && global.appSetting.tray.isShow) { eventHub.emit(hotKeyNamesCommon.hide_toggle.action) return }