fix clearing statusbar if playing is stopped
This commit is contained in:
@@ -361,7 +361,7 @@ void NcmpcppStatusChanged(Connection *Mpd, StatusChanges changed, void *)
|
||||
}
|
||||
if (changed.ElapsedTime)
|
||||
{
|
||||
if (!np.Empty())
|
||||
if (!np.Empty() && !player_state.empty())
|
||||
{
|
||||
int elapsed = Mpd->GetElapsedTime();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user