Browse Source

Add delay before processing FS changes

This prevents file renaming errors in monitored folder on linux, for
example: ABC.torrent.part -> ABC.torrent
adaptive-webui-19844
Chocobo1 7 years ago
parent
commit
ea7eb7c0ec
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 2
      src/base/filesystemwatcher.cpp

2
src/base/filesystemwatcher.cpp

@ -124,7 +124,7 @@ void FileSystemWatcher::removePath(const QString &path)
void FileSystemWatcher::scanLocalFolder(const QString &path) void FileSystemWatcher::scanLocalFolder(const QString &path)
{ {
processTorrentsInDir(path); QTimer::singleShot(2000, this, [this, path]() { processTorrentsInDir(path); });
} }
#ifndef Q_OS_WIN #ifndef Q_OS_WIN

Loading…
Cancel
Save