From d40973def8d8d6108e29660e5f6d621e5d1cad66 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Sat, 31 May 2025 19:15:24 +0200 Subject: [PATCH] Add IPC handler for checking README existence --- main.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.js b/main.js index cbc12be..aad7610 100644 --- a/main.js +++ b/main.js @@ -1387,7 +1387,10 @@ function buildTrayMenu() { } }); - + ipcMain.handle('has-readme', async (_evt, folderPath) => { + const readmePath = path.join(folderPath, 'README.md'); + return fs.existsSync(readmePath); + });