From 6732aa70e94202f0d7f135e45a89ba65e6c5c287 Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Tue, 9 Aug 2022 02:46:53 +0400 Subject: [PATCH] Fix endless hiding state without compositing --- ui/widgets/popup_menu.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ui/widgets/popup_menu.cpp b/ui/widgets/popup_menu.cpp index dd6d3bf..a8374e1 100644 --- a/ui/widgets/popup_menu.cpp +++ b/ui/widgets/popup_menu.cpp @@ -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()) { @@ -723,7 +723,6 @@ void PopupMenu::opacityAnimationCallback() { update(); if (!_a_opacity.animating()) { if (_hiding) { - _hiding = false; hideFinished(); } else { showChildren();