fix displaying messages if player is stopped
This commit is contained in:
@@ -144,12 +144,13 @@ void TraceMpdStatus()
|
|||||||
else
|
else
|
||||||
block_progressbar_update = !allow_statusbar_unlock;
|
block_progressbar_update = !allow_statusbar_unlock;
|
||||||
|
|
||||||
if (Mpd.GetState() < psPlay && !block_statusbar_update)
|
if (Mpd.GetState() < psPlay && !block_statusbar_update && !block_progressbar_update)
|
||||||
{
|
{
|
||||||
if (Config.new_design)
|
if (Config.new_design)
|
||||||
mvwhline(wFooter->Raw(), 0, 0, 0, wFooter->GetWidth());
|
mvwhline(wFooter->Raw(), 0, 0, 0, wFooter->GetWidth());
|
||||||
else
|
else
|
||||||
Statusbar() << wclrtoeol;
|
Statusbar() << wclrtoeol;
|
||||||
|
wFooter->Refresh();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -326,9 +327,12 @@ void NcmpcppStatusChanged(Connection *, StatusChanges changed, void *)
|
|||||||
case psStop:
|
case psStop:
|
||||||
{
|
{
|
||||||
WindowTitle("ncmpc++ ver. "VERSION);
|
WindowTitle("ncmpc++ ver. "VERSION);
|
||||||
*wFooter << Config.progressbar_color;
|
if (!block_progressbar_update)
|
||||||
mvwhline(wFooter->Raw(), 0, 0, 0, wFooter->GetWidth());
|
{
|
||||||
*wFooter << clEnd;
|
*wFooter << Config.progressbar_color;
|
||||||
|
mvwhline(wFooter->Raw(), 0, 0, 0, wFooter->GetWidth());
|
||||||
|
*wFooter << clEnd;
|
||||||
|
}
|
||||||
Playlist::ReloadRemaining = 1;
|
Playlist::ReloadRemaining = 1;
|
||||||
myPlaylist->NowPlaying = -1;
|
myPlaylist->NowPlaying = -1;
|
||||||
if (Config.new_design)
|
if (Config.new_design)
|
||||||
|
|||||||
Reference in New Issue
Block a user