1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2024-12-14 18:03:44 +01:00

Pass task ID to SetTaskBlocksCollectionScans

This commit is contained in:
Jonas Kvinge 2021-06-22 13:57:12 +02:00
parent 6bf3c34fe5
commit e5c85ddd32
2 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ void DeleteFiles::Start(const SongList &songs) {
songs_ = songs;
task_id_ = task_manager_->StartTask(tr("Deleting files"));
task_manager_->SetTaskBlocksCollectionScans(true);
task_manager_->SetTaskBlocksCollectionScans(task_id_);
thread_ = new QThread(this);
QObject::connect(thread_, &QThread::started, this, &DeleteFiles::ProcessSomeFiles);

View File

@ -105,7 +105,7 @@ void Organize::Start() {
if (thread_) return;
task_id_ = task_manager_->StartTask(tr("Organizing files"));
task_manager_->SetTaskBlocksCollectionScans(true);
task_manager_->SetTaskBlocksCollectionScans(task_id_);
thread_ = new QThread;
QObject::connect(thread_, &QThread::started, this, &Organize::ProcessSomeFiles);