Don't reset playing widget timeline

This commit is contained in:
Jonas Kvinge 2020-09-29 01:07:04 +02:00
parent a2915913bb
commit 5877aa822c
1 changed files with 1 additions and 7 deletions

View File

@ -180,10 +180,7 @@ void PlayingWidget::SetDisabled() {
void PlayingWidget::SetVisible(bool visible) {
if (timeline_show_hide_->state() == QTimeLine::Running) {
if (timeline_show_hide_->currentFrame() <= 5) {
timeline_show_hide_->stop();
}
else if (timeline_show_hide_->direction() == QTimeLine::Backward && enabled_ && active_) {
if (timeline_show_hide_->direction() == QTimeLine::Backward && enabled_ && active_) {
timeline_show_hide_->toggleDirection();
return;
}
@ -191,9 +188,6 @@ void PlayingWidget::SetVisible(bool visible) {
timeline_show_hide_->toggleDirection();
return;
}
else {
timeline_show_hide_->stop();
}
}
if (visible != visible_) {