폴더창 보이기/숨기기 버튼 추가

This commit is contained in:
2026-05-22 17:06:13 +09:00
parent 48f86566d0
commit 48d5cfb7e3
6 changed files with 44 additions and 3 deletions
+9
View File
@@ -79,6 +79,15 @@ function register(mainWindow) {
updateConfig(cfg => { cfg.sidebarWidth = width; });
});
ipcMain.handle('get-file-explorer-visible', () => {
const cfg = readConfig();
return cfg.fileExplorerVisible !== false; // 기본값 true
});
ipcMain.handle('set-file-explorer-visible', (_e, visible) => {
updateConfig(cfg => { cfg.fileExplorerVisible = visible; });
});
ipcMain.handle('get-thumb-size', () => {
const cfg = readConfig();
return Number.isFinite(cfg.thumbSize) ? cfg.thumbSize : null;