mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-27 23:50:19 -05:00
#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:
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 );
|
||||
|
||||
Reference in new issue
Block a user