Merge pull request #1019 from shenlebantongying/temp_max_fix

fix: Qt6.4/5's maximum bug https://bugreports.qt.io/browse/QTBUG-115074
This commit is contained in:
xiaoyifang 2023-07-28 12:07:16 +08:00 committed by GitHub
commit 365899ce7f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -741,10 +741,6 @@ MainWindow::MainWindow( Config::Class & cfg_ ):
// Create tab list menu
createTabList();
if ( cfg.mainWindowState.size() && !cfg.resetState )
restoreState( cfg.mainWindowState );
if ( cfg.mainWindowGeometry.size() )
restoreGeometry( cfg.mainWindowGeometry );
#if defined( Q_OS_LINUX )
#if ( QT_VERSION >= QT_VERSION_CHECK( 6, 0, 0 ) )
@ -915,6 +911,12 @@ MainWindow::MainWindow( Config::Class & cfg_ ):
urlRegistry.endGroup();
#endif
// restore should be called after all UI initialized.
if ( cfg.mainWindowState.size() && !cfg.resetState )
restoreState( cfg.mainWindowState );
if ( cfg.mainWindowGeometry.size() )
restoreGeometry( cfg.mainWindowGeometry );
useSmallIconsInToolbarsTriggered();
if ( cfg.preferences.checkForNewReleases ) {