mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-02 21:09:39 +01:00
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) {
|
||||
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());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user