Fix endless hiding state without compositing

This commit is contained in:
Ilya Fedin 2022-08-09 02:46:53 +04:00 committed by John Preston
parent 637ff6be4b
commit 6732aa70e9

View file

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