Fix recent project menu showing projects from custom storages as unavailable. Fixes #32193

This commit is contained in:
Borys Jurgiel 2019-10-10 18:34:47 +02:00 committed by Nyall Dawson
parent 47eb526cf2
commit 651e380eae

View File

@ -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" ) ) )
{