1
0

Add IPC handler for checking README existence

This commit is contained in:
2025-05-31 19:15:24 +02:00
parent 9e57545ac7
commit d40973def8

View File

@@ -1387,7 +1387,10 @@ function buildTrayMenu() {
}
});
ipcMain.handle('has-readme', async (_evt, folderPath) => {
const readmePath = path.join(folderPath, 'README.md');
return fs.existsSync(readmePath);
});