mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Fix assertion violation in a new window init.
Fixes #24620. In MainWidget updateControlsGeometry accesses SessionController and itself through SessionController::content, which is not filled in the MainWidget constructor yet, so ignore initial updates.
This commit is contained in:
parent
7023b013ce
commit
dcb1315d53
1 changed files with 3 additions and 0 deletions
|
@ -2123,6 +2123,9 @@ void MainWidget::resizeEvent(QResizeEvent *e) {
|
|||
}
|
||||
|
||||
void MainWidget::updateControlsGeometry() {
|
||||
if (!width()) {
|
||||
return;
|
||||
}
|
||||
updateWindowAdaptiveLayout();
|
||||
if (_dialogs) {
|
||||
if (Core::App().settings().dialogsWidthRatio() > 0) {
|
||||
|
|
Loading…
Add table
Reference in a new issue