Centralized the play/stop events from playqueue

This commit is contained in:
emeric
2018-09-13 13:21:20 +02:00
parent 5e3cfffa92
commit 7264cdc364
14 changed files with 85 additions and 85 deletions
+10
View File
@@ -57,6 +57,16 @@ TracksInfo::TracksInfo()
_mostPlayedContainer = bindNew<Wt::WContainerWidget>("most-played");
_recentlyAddedContainer = bindNew<Wt::WContainerWidget>("recently-added");
LmsApp->getEvents().dbScanned.connect([=]
{
refreshRecentlyAdded();
});
LmsApp->getEvents().trackLoaded.connect([=]
{
refreshMostPlayed();
});
refreshMostPlayed();
refreshRecentlyAdded();
}