修复无法开启托盘的bug
parent
7a933dbd5e
commit
75da9c2e73
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "lx-music-desktop",
|
||||
"version": "1.0.0-beta",
|
||||
"version": "1.0.0-beta2",
|
||||
"description": "一个免费的音乐下载助手",
|
||||
"main": "./dist/electron/main.js",
|
||||
"productName": "lx-music-desktop",
|
||||
|
|
|
@ -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)
|
||||
})
|
||||
|
|
|
@ -25,7 +25,7 @@ div.scroll(:class="$style.setting")
|
|||
dd(:title="$t('view.setting.basic_to_tray_title')")
|
||||
h3 {{$t('view.setting.basic_to_tray')}}
|
||||
div
|
||||
material-checkbox(id="setting_to_tray" v-model="current_setting.tray.isToTray" :label="$t('view.setting.is_enable')")
|
||||
material-checkbox(id="setting_to_tray" v-model="current_setting.tray.isShow" @change="handleTrayShowChange" :label="$t('view.setting.is_enable')")
|
||||
|
||||
dd(:title="$t('view.setting.basic_window_size_title')")
|
||||
h3 {{$t('view.setting.basic_window_size')}}
|
||||
|
@ -989,6 +989,9 @@ export default {
|
|||
return status
|
||||
})
|
||||
},
|
||||
handleTrayShowChange(isShow) {
|
||||
this.current_setting.tray.isToTray = isShow
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
|
Loading…
Reference in New Issue