sidebar-resizer 추가

This commit is contained in:
2026-05-17 23:30:31 +09:00
parent 2fc48f75ff
commit 3d0943b6fe
7 changed files with 116 additions and 5 deletions
+12 -1
View File
@@ -68,6 +68,17 @@ function register(mainWindow) {
cfg.previewOn = on;
writeConfig(cfg);
});
ipcMain.handle('get-sidebar-width', () => {
const cfg = readConfig();
return Number.isFinite(cfg.sidebarWidth) ? cfg.sidebarWidth : null;
});
ipcMain.handle('set-sidebar-width', (_e, width) => {
const cfg = readConfig();
cfg.sidebarWidth = width;
writeConfig(cfg);
});
}
module.exports = { register };
module.exports = { register };