mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-04 00:30:59 -05:00
Fix recent project menu showing projects from custom storages as unavailable. Fixes #32193
This commit is contained in:
parent
47eb526cf2
commit
651e380eae
@ -1025,12 +1025,6 @@ QgisApp::QgisApp( QSplashScreen *splash, bool restorePlugins, bool skipVersionCh
|
||||
connect( projectsTemplateWatcher, &QFileSystemWatcher::directoryChanged, this, [this] { updateProjectFromTemplates(); } );
|
||||
}
|
||||
|
||||
// Update welcome page list
|
||||
startProfile( QStringLiteral( "Update recent project paths" ) );
|
||||
updateRecentProjectPaths();
|
||||
mWelcomePage->setRecentProjects( mRecentProjects );
|
||||
endProfile();
|
||||
|
||||
// initialize the plugin manager
|
||||
startProfile( QStringLiteral( "Plugin manager" ) );
|
||||
mPluginManager = new QgsPluginManager( this, restorePlugins );
|
||||
@ -1246,6 +1240,7 @@ QgisApp::QgisApp( QSplashScreen *splash, bool restorePlugins, bool skipVersionCh
|
||||
mSplash->showMessage( tr( "Restoring loaded plugins" ), Qt::AlignHCenter | Qt::AlignBottom );
|
||||
qApp->processEvents();
|
||||
QgsPluginRegistry::instance()->setQgisInterface( mQgisInterface );
|
||||
|
||||
if ( restorePlugins )
|
||||
{
|
||||
// Restoring of plugins can be disabled with --noplugins command line option
|
||||
@ -1281,6 +1276,12 @@ QgisApp::QgisApp( QSplashScreen *splash, bool restorePlugins, bool skipVersionCh
|
||||
mActionShowPythonDialog = nullptr;
|
||||
}
|
||||
|
||||
// Update recent project list (as possible custom project storages are now registered by plugins)
|
||||
startProfile( QStringLiteral( "Update recent project paths" ) );
|
||||
updateRecentProjectPaths();
|
||||
mWelcomePage->setRecentProjects( mRecentProjects );
|
||||
endProfile();
|
||||
|
||||
// Set icon size of toolbars
|
||||
if ( settings.contains( QStringLiteral( "/qgis/iconSize" ) ) )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user