fix: retain pending folder files across pause

This commit is contained in:
Sucukdeluxe committed 2026-08-26 09:31:52 +02:00
1 parent 724280b0cf
commit d16823acbc
2 files changed
+32

No files matched your search

+3
View File
@@ -188,6 +188,9 @@ class FolderMonitor extends EventEmitter {
_invalidateLifecycle(paused) {
this._generation++;
if (paused) {
for (const filePath of this._batchBuffer) this._seenFiles.delete(this._normalizePath(filePath));
}
this._paused = paused;
this._scanning = false;
this._followUpRequested = false;