mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-11 07:18:08 +00: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:
parent
19c733ce95
commit
ea7eb7c0ec
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user