From 950640152d63076dcee47759d1ce431655e18279 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Sun, 25 May 2025 06:05:08 +0200 Subject: [PATCH] auto-git: [change] main.js --- main.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.js b/main.js index 99a8cc6..10c0405 100644 --- a/main.js +++ b/main.js @@ -1078,6 +1078,11 @@ function buildTrayMenu() { ipcMain.handle('set-monitoring', async (_e, folderPath, monitoring) => { let folders = store.get('folders') || []; + const folderObj = folders.find(f => f.path === folderPath); + if (!folderObj || folderObj.needsRelocation) { + // Monitoring-Start für fehlenden Ordner: Ignorieren! + return false; + } folders = folders.map(f => f.path === folderPath ? { ...f, monitoring } : f );