mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-30 14:08:41 +00: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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user