Fixed top bar glitch when returning dialog back too fast.

This commit is contained in:
23rd 2019-04-09 17:10:58 +03:00
parent 9bfa6d7cf4
commit ba8257ce64
1 changed files with 1 additions and 1 deletions

View File

@ -539,6 +539,7 @@ void TopBarWidget::updateControlsGeometry() {
void TopBarWidget::finishAnimating() {
_selectedShown.stop();
updateControlsVisibility();
update();
}
void TopBarWidget::setAnimatingMode(bool enabled) {
@ -546,7 +547,6 @@ void TopBarWidget::setAnimatingMode(bool enabled) {
_animatingMode = enabled;
setAttribute(Qt::WA_OpaquePaintEvent, !_animatingMode);
finishAnimating();
updateControlsVisibility();
}
}