feat: 优化窗口大小管理功能,优化窗口状态保存与恢复逻辑

- 引入窗口大小管理器,初始化窗口大小管理
- 优化窗口状态保存与恢复,确保在迷你模式下正确应用窗口大小
- 移除不必要的代码,简化窗口管理逻辑
- 更新窗口创建逻辑,确保窗口大小和位置的正确性
This commit is contained in:
alger
2025-06-06 23:37:06 +08:00
parent b203077cad
commit e46df8a04e
5 changed files with 825 additions and 257 deletions

View File

@@ -8,8 +8,6 @@ import * as NodeID3 from 'node-id3';
import * as path from 'path';
import * as os from 'os';
import * as mm from 'music-metadata';
// 导入文件类型库这里使用CommonJS兼容方式导入
// 对于file-type v21.0.0需要这样导入
import { fileTypeFromFile } from 'file-type';
import { getStore } from './config';