Guard the .meta creation in openMetaFile against the directory watcher

openMetaFile creates the .meta file via QSettings when one does not
exist; the disk write fires directoryChanged and triggers a spurious
refreshList. Wrap it in a DirWatcherManager::Guard like the other
meta-file editing paths.
This commit is contained in:
AL
2026-05-04 13:39:08 +02:00
parent 7d8d4bb545
commit 4242abeab1
+1
View File
@@ -1278,6 +1278,7 @@ void DownloadManager::openMetaFile(int index)
shell::Open(metaPath);
return;
} else {
DirWatcherManager::Guard dirWatcherGuard = m_DirWatcher.scopedGuard();
QSettings metaFile(metaPath, QSettings::IniFormat);
metaFile.setValue("removed", false);
}