mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07: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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue