사이드바 너비, 카드 크기 정보 저장, 앱 실행시 적용 + 개발 모드 실행시 로그 출력

This commit is contained in:
2026-05-18 11:14:10 +09:00
parent d74c2e055d
commit 0ef8a28d54
16 changed files with 234 additions and 44 deletions
+6 -1
View File
@@ -8,12 +8,17 @@ const {
moveFileWithCopyFallback,
readImageAsDataUrl,
} = require('./file-utils');
const logger = require('../logger');
function register() {
ipcMain.handle('list-images', async (_event, folderPath) => {
logger.log('ipc:files', 'list-images requested', { folderPath });
try {
return listImages(folderPath);
const files = listImages(folderPath);
logger.log('ipc:files', 'list-images result', { folderPath, count: files.length });
return files;
} catch (e) {
logger.error('ipc:files', `list-images failed: ${folderPath}`, e);
return [];
}
});