mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 22:54:01 +02:00
Fix export window size.
Fixes #24373. SeparatePanel::show calls activePopupWidget::close, activePopupWidget::close calls SeparatePanel::resizeEvents with strange values.
This commit is contained in:
parent
9f2683a35b
commit
e67192cdf0
1 changed files with 7 additions and 0 deletions
|
@ -120,6 +120,13 @@ void SeparatePanel::setHideOnDeactivate(bool hideOnDeactivate) {
|
|||
}
|
||||
|
||||
void SeparatePanel::showAndActivate() {
|
||||
if (isHidden()) {
|
||||
while (const auto widget = QApplication::activePopupWidget()) {
|
||||
if (!widget->close()) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
toggleOpacityAnimation(true);
|
||||
raise();
|
||||
setWindowState(windowState() | Qt::WindowActive);
|
||||
|
|
Loading…
Add table
Reference in a new issue