mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-12-27 08:19:30 +08: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