Centralized the play/stop events from playqueue
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user