Fix filter icon panel wrong hiding.

This commit is contained in:
John Preston 2020-03-20 00:41:21 +04:00
parent b3f8e27661
commit ba6373a0ae
3 changed files with 3 additions and 3 deletions

View File

@ -280,6 +280,7 @@ void TabbedPanel::hideByTimerOrLeave() {
void TabbedPanel::prepareCacheFor(bool hiding) {
if (_a_opacity.animating()) {
_hiding = hiding;
return;
}

View File

@ -325,6 +325,7 @@ void FilterIconPanel::hideByTimerOrLeave() {
void FilterIconPanel::prepareCacheFor(bool hiding) {
if (_a_opacity.animating()) {
_hiding = hiding;
return;
}
@ -404,7 +405,7 @@ void FilterIconPanel::hideAnimated() {
}
void FilterIconPanel::toggleAnimated() {
if (isHidden() || _hiding || _hideAfterSlide) {
if (isHidden() || _hiding) {
showAnimated();
} else {
hideAnimated();
@ -421,7 +422,6 @@ void FilterIconPanel::hideFinished() {
void FilterIconPanel::showAnimated() {
_hideTimer.cancel();
_hideAfterSlide = false;
showStarted();
}

View File

@ -77,7 +77,6 @@ private:
Ui::Animations::Simple _a_show;
bool _hiding = false;
bool _hideAfterSlide = false;
QPixmap _cache;
Ui::Animations::Simple _a_opacity;
base::Timer _hideTimer;