mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-31 17:17:50 -05:00
RiuRecentFileActionProvider: Track last used project file via recent file list
Remove lastUsedProjectFileName from RiaPreferences and store it via the existing recentFileList QSettings key. loadProject and saveProjectAs now call addToRecentFiles instead of writing to preferences. A new static method lastUsedProjectFileName() on RiuRecentFileActionProvider returns the most recent .rsp entry from the list.
This commit is contained in:
1 parent
ef7943feaa
commit
5d65057d6f
8 files changed
+24
-13
No files matched your search
@@ -192,9 +192,6 @@ RiaPreferences::RiaPreferences()
|
||||
CAF_PDM_InitField( &m_showGridBox, "showGridBox", true, "Show Grid Box in New Projects" );
|
||||
caf::PdmUiNativeCheckBoxEditor::configureFieldForEditor( &m_showGridBox );
|
||||
|
||||
CAF_PDM_InitFieldNoDefault( &lastUsedProjectFileName, "lastUsedProjectFileName", "Last Used Project File" );
|
||||
lastUsedProjectFileName.uiCapability()->setUiHidden( true );
|
||||
|
||||
CAF_PDM_InitField( &holoLensDisableCertificateVerification,
|
||||
"holoLensDisableCertificateVerification",
|
||||
false,
|
||||
|
||||
Reference in new issue
Block a user