1
0

auto-git:

[change] main.js
This commit is contained in:
2025-05-25 05:22:58 +02:00
parent 171c9fbf10
commit 3166c4279c

View File

@@ -595,7 +595,12 @@ app.whenReady().then(() => {
if (needsRelocation !== missing) {
anyChanged = true;
updatedFolders.push({ ...f, needsRelocation: missing });
return { ...f, needsRelocation: missing };
// NEU: Monitoring beenden, falls missing
if (missing) {
stopMonitoringWatcher(f.path);
f.monitoring = false;
}
return { ...f, needsRelocation: missing, monitoring: missing ? false : f.monitoring };
}
return f;
});