fix refreshing player state with classic user interface

This commit is contained in:
Andrzej Rybczak
2009-12-23 16:37:56 +01:00
parent 63178105c3
commit 43dcc8bd54

View File

@@ -364,8 +364,14 @@ void NcmpcppStatusChanged(Connection *, StatusChanges changed, void *)
*wHeader << XY(0, 1) << fmtBold << player_state << fmtBoldEnd; *wHeader << XY(0, 1) << fmtBold << player_state << fmtBoldEnd;
wHeader->Refresh(); wHeader->Refresh();
} }
else if (!block_statusbar_update && Config.statusbar_visibility && player_state.empty()) else if (!block_statusbar_update && Config.statusbar_visibility)
*wFooter << XY(0, 1) << wclrtoeol; {
*wFooter << XY(0, 1);
if (player_state.empty())
*wFooter << wclrtoeol;
else
*wFooter << fmtBold << player_state << fmtBoldEnd;
}
} }
if (changed.SongID) if (changed.SongID)
{ {