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:
parent
6bf3c34fe5
commit
e5c85ddd32
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user