Indicate the playing track while in release view

This commit is contained in:
emeric
2018-09-13 20:37:10 +02:00
parent 7264cdc364
commit 36ea379787
4 changed files with 17 additions and 2 deletions
+3 -1
View File
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2013 Emeric Poupon
* Copyright (C) 2018 Emeric Poupon
*
* This file is part of LMS.
*
@@ -448,11 +448,13 @@ LmsApplication::createHome()
playqueue->loadTrack.connect([=] (Database::IdType trackId, bool play)
{
_events.lastLoadedTrackId = trackId;
_events.trackLoaded(trackId, play);
});
playqueue->trackUnload.connect([=]
{
_events.lastLoadedTrackId.reset();
_events.trackUnloaded();
});