UI: Remove duplicate media timer code

This removes duplicate code that is already in the
start/stop timer functions.
This commit is contained in:
Clayton Groeneveld
2020-09-07 16:14:32 -05:00
parent af09057395
commit adb4c40f73
+2 -2
View File
@@ -120,7 +120,7 @@ void MediaControls::MediaSliderClicked()
} else if (state == OBS_MEDIA_STATE_PLAYING) {
prevPaused = false;
PauseMedia();
mediaTimer.stop();
StopMediaTimer();
}
seek = ui->slider->value();
@@ -145,7 +145,7 @@ void MediaControls::MediaSliderReleased()
if (!prevPaused) {
PlayMedia();
mediaTimer.start(1000);
StartMediaTimer();
}
}