sidebar-resizer 추가
This commit is contained in:
+12
-1
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user