fix refreshing player state with classic user interface

master
Andrzej Rybczak 16 years ago
parent 63178105c3
commit 43dcc8bd54
  1. 10
      src/status.cpp

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

Loading…
Cancel
Save