V 3.3.9(2025.05.29)
1. 生图包适配,修复部分任务无法获取图片的问题。 2. 新增聚合推文原创重置功能,直接重置GPT提示词、合并提示词、出图等。 3. 优化加载界面,提升用户体验。 4. 优化主页显示,优化UI界面,提升用户体验。
This commit is contained in:
+6
-7
@@ -19,7 +19,7 @@ import { SoftWareServiceBasic } from './Service/ServiceBasic/softwareServiceBasi
|
||||
// ipc
|
||||
import { DiscordIpc, RemoveDiscordIpc } from './IPCEvent/discordIpc.js'
|
||||
import { Logger } from './logger.js'
|
||||
import { RegisterIpc } from './IPCEvent/index.js'
|
||||
import { RegisterIpc } from './IPCEvent/index'
|
||||
|
||||
import { InitRemoteMjSettingType } from './initFunc'
|
||||
|
||||
@@ -47,13 +47,12 @@ function removeIpcHandler(hash) {
|
||||
}
|
||||
}
|
||||
|
||||
async function createWindow(hash = 'ShowMessage', data, url = null) {
|
||||
async function createWindow(hash = 'mainHome', data, url = null) {
|
||||
// Create the browser window.
|
||||
await InitData(global)
|
||||
global.currentHash = hash
|
||||
// 判断当前是不是有设置的宽高,用的话记忆
|
||||
let isRe =
|
||||
global.config.window_wh_bm_remember && hash == 'ShowMessage' && global.config.window_wh_bm
|
||||
let isRe = global.config.window_wh_bm_remember && hash == 'mainHome' && global.config.window_wh_bm
|
||||
const ses = session.fromPartition('persist:my-session')
|
||||
let mainWindow = new BrowserWindow({
|
||||
width: isRe ? global.config.window_wh_bm.width : 900,
|
||||
@@ -112,7 +111,7 @@ async function createWindow(hash = 'ShowMessage', data, url = null) {
|
||||
removeIpcHandler(hash)
|
||||
global.newWindow = global.newWindow.filter((item) => item.id != mainWindow.id)
|
||||
// 判断当前的是不是开启了记录功能
|
||||
if (global.config.window_wh_bm_remember && hash == 'ShowMessage') {
|
||||
if (global.config.window_wh_bm_remember && hash == 'mainHome') {
|
||||
let window_wh_bm = mainWindow.getBounds()
|
||||
// 记录到文件中
|
||||
await setting.ModifySampleSetting(JSON.stringify({ window_wh_bm: window_wh_bm }))
|
||||
@@ -201,7 +200,7 @@ app.whenReady().then(async () => {
|
||||
// On macOS it's common to re-create a window in the app when the
|
||||
// dock icon is clicked and there are no other windows open.
|
||||
if (BrowserWindow.getAllWindows().length === 0) {
|
||||
mainWindow = createWindow('ShowMessage', null)
|
||||
mainWindow = createWindow('mainHome', null)
|
||||
}
|
||||
})
|
||||
|
||||
@@ -210,7 +209,7 @@ app.whenReady().then(async () => {
|
||||
await AutoSync()
|
||||
|
||||
global.newWindow = []
|
||||
mainWindow = await createWindow('ShowMessage', null)
|
||||
mainWindow = await createWindow('mainHome', null)
|
||||
|
||||
global.requestQuene = new AsyncQueue(global, global.config.task_number)
|
||||
global.fileQueue = new AsyncQueue(global, 1)
|
||||
|
||||
Reference in New Issue
Block a user