LaiTool V3.1.1.
This commit is contained in:
+6
-1
@@ -7,7 +7,7 @@ import { app, shell, BrowserWindow, ipcMain, dialog, nativeTheme, session } from
|
||||
import path, { join } from 'path'
|
||||
import { electronApp, optimizer, is } from '@electron-toolkit/utils'
|
||||
import icon from '../../resources/icon.ico?asset'
|
||||
import { define } from '../define/define.js'
|
||||
import { define } from '../define/define'
|
||||
import { func } from './func.js'
|
||||
import { AsyncQueue } from './quene'
|
||||
import { DEFINE_STRING } from '../define/define_string'
|
||||
@@ -17,6 +17,7 @@ import { Setting } from './setting/setting.js'
|
||||
import { has, isEmpty } from 'lodash'
|
||||
import { AutoSync } from './setting/autoSync.js'
|
||||
import { TaskManager } from './Service/taskManage'
|
||||
import { SoftWareServiceBasic } from './Service/ServiceBasic/softwareServiceBasic'
|
||||
|
||||
// ipc
|
||||
import { DiscordIpc, RemoveDiscordIpc } from './IPCEvent/discordIpc.js'
|
||||
@@ -26,6 +27,7 @@ import { RegisterIpc } from './IPCEvent/index.js'
|
||||
let tools = new Tools()
|
||||
let imageGenerate = new ImageGenerate(global)
|
||||
let setting = new Setting(global)
|
||||
let softWareServiceBasic = new SoftWareServiceBasic()
|
||||
|
||||
async function InitData(gl) {
|
||||
let res = await setting.getSettingDafultData()
|
||||
@@ -113,6 +115,9 @@ async function createWindow(hash = 'ShowMessage', data, url = null) {
|
||||
let window_wh_bm = mainWindow.getBounds()
|
||||
// 记录到文件中
|
||||
await setting.ModifySampleSetting(JSON.stringify({ window_wh_bm: window_wh_bm }))
|
||||
await softWareServiceBasic.UpdateSoftware({
|
||||
window_wh_bm: JSON.stringify(window_wh_bm)
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user