修复无法开启托盘的bug

This commit is contained in:
lyswhut
2020-07-04 17:32:43 +08:00
parent 7a933dbd5e
commit 75da9c2e73
3 changed files with 8 additions and 5 deletions
+3 -3
View File
@@ -22,9 +22,9 @@ global.lx_event.common.on(COMMON_EVENT_NAME.config, sourceName => {
themeId = global.appSetting.tray.themeId
setTrayImage(themeId)
}
if (isEnableTray !== global.appSetting.tray.isToTray) {
isEnableTray = global.appSetting.tray.isToTray
global.appSetting.tray.isToTray ? createTray() : destroyTray()
if (isEnableTray !== global.appSetting.tray.isShow) {
isEnableTray = global.appSetting.tray.isShow
global.appSetting.tray.isShow ? createTray() : destroyTray()
}
createMenu(global.modules.tray)
})