增加“关闭时最小化到托盘”的设置 (#166)

添加托盘设置,调整主进程代码架构
This commit is contained in:
Lasy
2020-04-03 20:00:43 +08:00
committed by GitHub
parent 15a76486ef
commit 1e481edc67
36 changed files with 340 additions and 202 deletions
+6 -1
View File
@@ -177,7 +177,7 @@ export const isChildren = (parent, children) => {
* @param {*} setting
*/
export const updateSetting = (setting, version) => {
const defaultVersion = '1.0.19'
const defaultVersion = '1.0.22'
if (!version) {
if (setting) {
version = setting.version
@@ -238,6 +238,10 @@ export const updateSetting = (setting, version) => {
password: '',
},
},
tray: {
isShow: false,
isToTray: false,
},
windowSizeId: 2,
themeId: 0,
langId: 'cns',
@@ -264,6 +268,7 @@ export const updateSetting = (setting, version) => {
setting = defaultSetting
}
if (setting.apiSource != 'temp') setting.apiSource = 'test' // 强制设置回 test 接口源
return { setting, version: defaultVersion }
}