2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Ensure window flags are set before calling SeparatePanel::setInnerSize

Setting window flags may lead to native window being re-created
This commit is contained in:
Ilya Fedin
2024-05-19 15:29:31 +04:00
committed by John Preston
parent 65b62485be
commit af4e0178d0
3 changed files with 3 additions and 3 deletions

View File

@@ -70,8 +70,8 @@ Panel::Progress::Progress(QWidget *parent, Fn<QRect()> rect)
Panel::Panel(not_null<PanelDelegate*> delegate)
: _delegate(delegate)
, _widget(std::make_unique<SeparatePanel>()) {
_widget->setInnerSize(st::paymentsPanelSize);
_widget->setWindowFlag(Qt::WindowStaysOnTopHint, false);
_widget->setInnerSize(st::paymentsPanelSize);
_widget->closeRequests(
) | rpl::start_with_next([=] {

View File

@@ -323,8 +323,8 @@ Panel::Panel(
, _menuButtons(menuButtons)
, _widget(std::make_unique<SeparatePanel>())
, _allowClipboardRead(allowClipboardRead) {
_widget->setInnerSize(st::botWebViewPanelSize);
_widget->setWindowFlag(Qt::WindowStaysOnTopHint, false);
_widget->setInnerSize(st::botWebViewPanelSize);
_widget->closeRequests(
) | rpl::start_with_next([=] {