Fixed blink of submenu in profile section on section destroy.

This commit is contained in:
23rd 2024-12-05 18:40:16 +03:00
parent fef133bf0a
commit bd084f9181

View file

@ -505,7 +505,7 @@ void WrapWidget::showTopBarMenu(bool check) {
return;
}
_topBarMenu = base::make_unique_q<Ui::PopupMenu>(
this,
QWidget::window(),
st::popupMenuExpandedSeparator);
_topBarMenu->setDestroyedCallback([this] {