[UI/MOBILE] The playqueue button is no longer a toggle button

This commit is contained in:
emeric
2016-04-09 15:52:56 +02:00
parent 0af4ddc23f
commit acfc22370d
3 changed files with 6 additions and 16 deletions
+3 -4
View File
@@ -112,11 +112,10 @@ Audio::Audio(Wt::WContainerWidget *parent)
AudioPlayer* audioPlayer = new AudioPlayer(AudioPlayer::ControlPlayqueue);
footer->bindWidget("player", audioPlayer);
audioPlayer->showPlayQueue().connect(std::bind([=] (bool state)
audioPlayer->showPlayQueue().connect(std::bind([=]
{
if (state)
wApp->setInternalPath("/audio/playqueue", true);
}, std::placeholders::_1));
wApp->setInternalPath("/audio/playqueue", true);
}));
// Connect the audio player events to the playqueue
playQueue->playTrack().connect(std::bind([=] (Database::Track::id_type id)