fix seeking with f/b in visualizer
visualizer specific timeout is too small, so we need to set it to default value while seeking.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user