Fix initial geometry for secondary windows.

This commit is contained in:
John Preston 2024-01-18 17:27:30 +04:00
parent 814de17f28
commit 37478d951a

View file

@ -1321,7 +1321,7 @@ Window::Controller *Application::ensureSeparateWindowForPeer(
std::make_unique<Window::Controller>(peer, showAtMsgId)
).first->second.get();
processCreatedWindow(result);
result->widget()->show();
result->firstShow();
result->finishFirstShow();
return activate(result);
}
@ -1341,7 +1341,7 @@ Window::Controller *Application::ensureSeparateWindowForAccount(
std::make_unique<Window::Controller>(account)
).first->second.get();
processCreatedWindow(result);
result->widget()->show();
result->firstShow();
result->finishFirstShow();
return activate(result);
}