mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 14:08:03 -06:00
Add delay before processing FS changes
This prevents file renaming errors in monitored folder on linux, for example: ABC.torrent.part -> ABC.torrent
This commit is contained in:
@@ -124,7 +124,7 @@ void FileSystemWatcher::removePath(const QString &path)
|
||||
|
||||
void FileSystemWatcher::scanLocalFolder(const QString &path)
|
||||
{
|
||||
processTorrentsInDir(path);
|
||||
QTimer::singleShot(2000, this, [this, path]() { processTorrentsInDir(path); });
|
||||
}
|
||||
|
||||
#ifndef Q_OS_WIN
|
||||
|
||||
Reference in New Issue
Block a user