Skip to content

Commit

Permalink
Fixed #418 - Windows State/Size does not save in case of fullscreen (4)
Browse files Browse the repository at this point in the history
If it was like this, then the QT error occurred because no windows frame
was present when switching to the same profile.
  • Loading branch information
foldynl committed Jul 26, 2024
1 parent ff9449a commit 7149a0c
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions ui/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -711,14 +711,6 @@ void MainWindow::setupLayoutMenu()
|| layoutProfile.mainState != QByteArray() )
{
restoreGeometry(layoutProfile.mainGeometry);
#if (QT_VERSION < QT_VERSION_CHECK(6, 3, 0))
// workaround for QTBUG-46620
if ( isMaximized() )
{
const QList<QScreen *> &screens = QGuiApplication::screens();
setGeometry( screens[0]->availableGeometry() );
}
#endif
restoreState(layoutProfile.mainState);
darkLightModeSwith->setChecked(isFusionStyle && layoutProfile.darkMode);
}
Expand Down

0 comments on commit 7149a0c

Please sign in to comment.