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) {
|
void PlayingWidget::SetVisible(bool visible) {
|
||||||
|
|
||||||
if (timeline_show_hide_->state() == QTimeLine::Running) {
|
if (timeline_show_hide_->state() == QTimeLine::Running) {
|
||||||
if (timeline_show_hide_->currentFrame() <= 5) {
|
if (timeline_show_hide_->direction() == QTimeLine::Backward && enabled_ && active_) {
|
||||||
timeline_show_hide_->stop();
|
|
||||||
}
|
|
||||||
else if (timeline_show_hide_->direction() == QTimeLine::Backward && enabled_ && active_) {
|
|
||||||
timeline_show_hide_->toggleDirection();
|
timeline_show_hide_->toggleDirection();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -191,9 +188,6 @@ void PlayingWidget::SetVisible(bool visible) {
|
||||||
timeline_show_hide_->toggleDirection();
|
timeline_show_hide_->toggleDirection();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else {
|
|
||||||
timeline_show_hide_->stop();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (visible != visible_) {
|
if (visible != visible_) {
|
||||||
|
|
Loading…
Reference in New Issue