viewer: prevent shuttle left/right from ever pausing

If the speed ever goes from 1 or -1 to 0, it'll in/decrease the speed one more
so it doesn't pause.
This commit is contained in:
itsmattkc
2020-02-20 19:12:14 +11:00
parent 5a070f14de
commit b231720398
+8 -4
View File
@@ -394,9 +394,11 @@ void ViewerWidget::ShuttleLeft()
current_speed--;
if (current_speed != 0) {
PlayInternal(current_speed);
if (current_speed == 0) {
current_speed--;
}
PlayInternal(current_speed);
}
void ViewerWidget::ShuttleStop()
@@ -414,9 +416,11 @@ void ViewerWidget::ShuttleRight()
current_speed++;
if (current_speed != 0) {
PlayInternal(current_speed);
if (current_speed == 0) {
current_speed++;
}
PlayInternal(current_speed);
}
void ViewerWidget::SetOCIOParameters(const QString &display, const QString &view, const QString &look)