block displaying elapsed time while seeking properly (alternative ui)

This commit is contained in:
Andrzej Rybczak
2009-08-30 06:53:15 +02:00
parent 762f233b96
commit 0a22debf0e
3 changed files with 5 additions and 2 deletions

View File

@@ -447,8 +447,7 @@ void NcmpcppStatusChanged(Connection *, StatusChanges changed, void *)
size_t second_margin = (std::max(player_state.length(), size_t(8))+1)*2;
size_t second_start = second_len < COLS-second_margin ? (COLS-second_len)/2 : player_state.length()+1;
if (!block_progressbar_update // if blocked, seeking in progress
|| lock_statusbar_delay >= 0) // do not block it if message is displayed
if (!SeekingInProgress)
*wHeader << XY(0, 0) << wclrtoeol << tracklength;
*wHeader << XY(first_start, 0);
first.Write(*wHeader, first_line_scroll_begin, COLS-tracklength.length()-VolumeState.length()-1, U(" ** "));