V 2.2.7 lama iopaint 去水印
This commit is contained in:
+11
-1
@@ -31,7 +31,9 @@ import { DiscordIpc, RemoveDiscordIpc } from './IPCEvent/discordIpc.js'
|
||||
import { MainIpc } from './IPCEvent/mainIpc.js'
|
||||
import { GlobalIpc } from "./IPCEvent/globalIpc.js";
|
||||
import { ImageIpc } from "./IPCEvent/imageIpc.js";
|
||||
import { SystemIpc } from "./IPCEvent/system.js";
|
||||
import { system } from "systeminformation";
|
||||
import { Logger } from "./logger.js";
|
||||
|
||||
let tools = new Tools();
|
||||
let imageGenerate = new ImageGenerate(global);
|
||||
@@ -44,6 +46,7 @@ async function InitData(gl) {
|
||||
gl.config = res;
|
||||
gl.requestQuene = new AsyncQueue(gl, res.task_number);
|
||||
gl.fileQueue = new AsyncQueue(gl, 1);
|
||||
gl.logger = new Logger(define.logger_path);
|
||||
return res;
|
||||
}
|
||||
|
||||
@@ -194,7 +197,13 @@ app.whenReady().then(async () => {
|
||||
// 判断动态文件是不是存在
|
||||
tools.checkJsonFileExistsOrCreate(path.normalize(define.dynamic_setting));
|
||||
// 判断标签文件是不是存在
|
||||
tools.checkJsonFileExistsOrCreate(path.normalize(define.tag_setting));
|
||||
tools.checkJsonFileExistsOrCreate(path.normalize(define.tag_setting), JSON.stringify({
|
||||
"character_tags": [],
|
||||
"style_tags": [],
|
||||
"scene_tags": [],
|
||||
"prefix_tags": [],
|
||||
"suffix_tags": []
|
||||
}));
|
||||
// 判断SD图片缓存文件是不是存在(不存在创建)
|
||||
tools.checkFolderExistsOrCreate(path.normalize(define.temp_sd_image));
|
||||
tools.checkFolderExistsOrCreate(path.normalize(path.join(define.image_path, "c_s")));
|
||||
@@ -230,6 +239,7 @@ MainIpc(createWindow);
|
||||
OriginalImageGenerateIpc();
|
||||
GlobalIpc();
|
||||
ImageIpc();
|
||||
SystemIpc();
|
||||
|
||||
|
||||
ipcMain.handle('dark-mode:toggle', (event, value) => {
|
||||
|
||||
Reference in New Issue
Block a user