Added track duration in various relevant place in the UI. #15
This commit is contained in:
@@ -33,9 +33,10 @@
|
||||
|
||||
#include "resource/ImageResource.hpp"
|
||||
|
||||
#include "Filters.hpp"
|
||||
#include "LmsApplication.hpp"
|
||||
#include "LmsApplicationException.hpp"
|
||||
#include "Filters.hpp"
|
||||
#include "TrackStringUtils.hpp"
|
||||
|
||||
using namespace Database;
|
||||
|
||||
@@ -203,6 +204,8 @@ Release::refresh()
|
||||
tracksAdd.emit({trackId});
|
||||
}));
|
||||
|
||||
entry->bindString("duration", trackDurationToString(track->getDuration()), Wt::TextFormat::Plain);
|
||||
|
||||
LmsApp->getEvents().trackLoaded.connect(entry, [=] (Database::IdType loadedTrackId, bool /*play*/)
|
||||
{
|
||||
entry->toggleStyleClass("Lms-explore-release-entry-playing", loadedTrackId == trackId);
|
||||
|
||||
Reference in New Issue
Block a user