Don't reset playing widget timeline
This commit is contained in:
parent
a2915913bb
commit
5877aa822c
|
@ -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_) {
|
||||
|
|
Loading…
Reference in New Issue