1
0

auto-git:

[change] main.js
This commit is contained in:
2025-05-25 06:05:08 +02:00
parent fa5fc95356
commit 950640152d

View File

@@ -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
);