#12217 Add support for import of Preferences from a text file

Allow export and import of Preferences from the Preferences dialog
Add command line parameter --preferences mypreferences.xml
This commit is contained in:
Magne Sjaastad committed 2025-03-12 15:32:44 +01:00
1 parent 45f182b5c4
commit cc84b68873
7 files changed
+142 -4

No files matched your search

@@ -159,6 +159,14 @@ RiaApplication::ApplicationStatus RiaConsoleApplication::handleArguments( gsl::n
return RiaApplication::ApplicationStatus::EXIT_COMPLETED;
}
if ( cvf::Option o = progOpt->option( "preferences" ) )
{
CVF_ASSERT( o.valueCount() == 1 );
m_preferencesFileName = cvfqt::Utils::toQString( o.value( 0 ) );
RiaApplication::initialize();
onProjectClosed();
}
if ( cvf::Option o = progOpt->option( "startdir" ) )
{
CVF_ASSERT( o.valueCount() == 1 );