Merge pull request #4669 from TheUbuntuGuy/master
Don't load the moodbar if the song was stopped
This commit is contained in:
commit
75cea2f2b9
|
@ -69,6 +69,17 @@ void MoodbarController::AsyncLoadComplete(MoodbarPipeline* pipeline,
|
||||||
if (current_item && current_item->Url() != url) {
|
if (current_item && current_item->Url() != url) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
// Did we stop the song?
|
||||||
|
switch(app_->player()->GetState()) {
|
||||||
|
case Engine::Error:
|
||||||
|
case Engine::Empty:
|
||||||
|
case Engine::Idle:
|
||||||
|
return;
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
emit CurrentMoodbarDataChanged(pipeline->data());
|
emit CurrentMoodbarDataChanged(pipeline->data());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue