From 5877aa822c63a139de220f560178a404047123a4 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Tue, 29 Sep 2020 01:07:04 +0200 Subject: [PATCH] Don't reset playing widget timeline --- src/widgets/playingwidget.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/widgets/playingwidget.cpp b/src/widgets/playingwidget.cpp index ded36cb28..7af9febd1 100644 --- a/src/widgets/playingwidget.cpp +++ b/src/widgets/playingwidget.cpp @@ -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_) {