Don't overwrite stored layout of main window with incorrect one
commitfc3953dbaa7e64c63c27e8edc40d1deb899dcf63
authorVladimir Golovnev <glassez@yandex.ru>
Sat, 20 Apr 2024 08:10:31 +0000 (20 11:10 +0300)
committerGitHub <noreply@github.com>
Sat, 20 Apr 2024 08:10:31 +0000 (20 11:10 +0300)
treef96bb73f48d9335fbab53e10152ce280010195c0
parent7310eec74e6694342e9934ecc524df38d0064bb5
Don't overwrite stored layout of main window with incorrect one

Prevents overwriting of the stored layout in case the main window was hidden at startup and
has not been shown since, because incorrect dimensions can be provided by it in this case.

PR #20725.
Closes #20720.
src/gui/mainwindow.cpp