Skip to content

Commit

Permalink
Fix endless hiding state without compositing
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-fedin authored and john-preston committed Aug 9, 2022
1 parent 637ff6b commit 6732aa7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ui/widgets/popup_menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -631,12 +631,12 @@ void PopupMenu::hideAnimated() {
void PopupMenu::hideFast() {
if (isHidden()) return;

_hiding = false;
_a_opacity.stop();
hideFinished();
}

void PopupMenu::hideFinished() {
_hiding = false;
_a_show.stop();
_cache = QPixmap();
if (!isHidden()) {
Expand Down Expand Up @@ -723,7 +723,6 @@ void PopupMenu::opacityAnimationCallback() {
update();
if (!_a_opacity.animating()) {
if (_hiding) {
_hiding = false;
hideFinished();
} else {
showChildren();
Expand Down

0 comments on commit 6732aa7

Please sign in to comment.