修复全局快捷键对桌面歌词无效的问题

This commit is contained in:
lyswhut
2021-04-26 14:13:11 +08:00
parent 8ae72074ef
commit e95553163c
2 changed files with 2 additions and 20 deletions
+1 -2
View File
@@ -2,7 +2,6 @@ const { common: COMMON_EVENT_NAME, winLyric: WIN_LYRIC_EVENT_NAME, hotKey: HOT_K
const { mainSend, NAMES: { winLyric: ipcWinLyricNames } } = require('../../../common/ipc')
const { desktop_lyric } = require('../../../common/hotKey')
const { getLyricWindowBounds } = require('./utils')
const { updateSetting } = require('../../utils')
let isLock = null
let isEnable = null
@@ -78,5 +77,5 @@ global.lx_event.hotKey.on(HOT_KEY_EVENT_NAME.keyDown, ({ type, key }) => {
}
desktopLyricSetting[settingKey] = !desktopLyricSetting[settingKey]
updateSetting({ desktopLyric: desktopLyricSetting }, null)
global.lx_core.setAppConfig({ desktopLyric: desktopLyricSetting }, null)
})