This commit is contained in:
2026-09-20 23:35:03 +08:00
parent 941ce4baab
commit 388c700996
19 changed files with 393 additions and 71 deletions

View File

@@ -25,6 +25,9 @@ ipcMain.handle('theme:set-follow-system', () => ({ theme: cfg.theme, accent: cfg
// stub 缺这个 handler 会往终端打一条未捕获错误(此测试不断言 console,
// 但留着噪音会掩盖真问题)。
ipcMain.handle('theme:subscribe', () => true);
// settings.js 启动时还会拉标题栏图标(window.api.getAppIcon -> app:get-icon),
// stub 缺这个 handler 同样打一条未捕获错误噪音;返回空串表示图标缺失(静默路径)。
ipcMain.handle('app:get-icon', () => '');
let passed = 0;
async function check(name, fn) {