LaiTool V3.0.1-preview.2

This commit is contained in:
2024-08-04 15:00:00 +08:00
parent 7312053a20
commit f3a25e9474
29 changed files with 214 additions and 120 deletions
+10 -10
View File
@@ -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