fix seeking with f/b in visualizer

visualizer specific timeout is too small, so we
need to set it to default value while seeking.
master
Andrzej Rybczak 17 years ago
parent 23d5601968
commit fa9b58627a
  1. 5
      src/ncmpcpp.cpp

@ -1168,6 +1168,9 @@ int main(int argc, char *argv[])
songpos = Mpd.GetElapsedTime();
int old_timeout = wFooter->GetTimeout();
wFooter->SetTimeout(ncmpcpp_window_timeout);
SeekingInProgress = 1;
*wFooter << fmtBold;
while (Keypressed(input, Key.SeekForward) || Keypressed(input, Key.SeekBackward))
@ -1229,6 +1232,8 @@ int main(int argc, char *argv[])
Mpd.Seek(songpos);
UpdateStatusImmediately = 1;
wFooter->SetTimeout(old_timeout);
UnlockProgressbar();
UnlockStatusbar();
}

Loading…
Cancel
Save