Création d'un compte pour un collaborateur extérieur au laboratoire depuis l'intranet ICube : https://intranet.icube.unistra.fr/fr/labs/member/profile

Commit b320d516 authored by Frédéric Larue's avatar Frédéric Larue
Browse files

Saving/restoration of recently used project list in the UI settings file restored.

parent 2f480ac5
......@@ -54,6 +54,12 @@ bool UIMainWindow::saveUISettings() const
QSettings settings( QSettings::IniFormat, QSettings::UserScope, "ExRealis", "Settings" );
settings.setValue( "geometry", saveGeometry() );
settings.setValue( "windowState", saveState() );
QStringList recents;
for( auto r : m_RecentProjects )
recents.push_back( r->text() );
settings.setValue( "recent", recents );
return true;
}
......@@ -67,6 +73,11 @@ bool UIMainWindow::loadUISettings()
restoreGeometry( settings.value("geometry").toByteArray() );
restoreState( settings.value("windowState").toByteArray() );
QStringList recents = settings.value( "recent" ).toStringList();
for( auto r=recents.rbegin(); r!=recents.rend(); ++r )
updateRecentListEntry( *r );
return true;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment