LaiTool V3.0.1-preview.2
This commit is contained in:
+10
-10
@@ -144,16 +144,6 @@ app.whenReady().then(async () => {
|
||||
optimizer.watchWindowShortcuts(window)
|
||||
})
|
||||
|
||||
global.logger = new Logger(define.logger_path)
|
||||
// 同步数据
|
||||
await AutoSync()
|
||||
|
||||
global.newWindow = []
|
||||
mainWindow = await createWindow('ShowMessage', null)
|
||||
|
||||
global.requestQuene = new AsyncQueue(global, global.config.task_number)
|
||||
global.fileQueue = new AsyncQueue(global, 1)
|
||||
|
||||
//判断是不是又配置文件,没有的话,将temp中的基础配置加载
|
||||
// 判断文件夹是不是存在
|
||||
let config_p = path.dirname(define.config_path)
|
||||
@@ -206,6 +196,16 @@ app.whenReady().then(async () => {
|
||||
mainWindow = createWindow('ShowMessage', null)
|
||||
}
|
||||
})
|
||||
|
||||
global.logger = new Logger(define.logger_path)
|
||||
// 同步数据
|
||||
await AutoSync()
|
||||
|
||||
global.newWindow = []
|
||||
mainWindow = await createWindow('ShowMessage', null)
|
||||
|
||||
global.requestQuene = new AsyncQueue(global, global.config.task_number)
|
||||
global.fileQueue = new AsyncQueue(global, 1)
|
||||
})
|
||||
|
||||
// Quit when all windows are closed, except on macOS. There, it's common
|
||||
|
||||
Reference in New Issue
Block a user