Commit c33d8464 authored by Cory Quammen's avatar Cory Quammen Committed by Utkarsh Ayachit

Added saving of settings JSON file

Change-Id: I700b3945548276e971e2e86f49882cbba5eb2166
parent c218b789
......@@ -187,7 +187,7 @@ void vtkInitializationHelper::Initialize(int argc, char**argv,
loader->LoadPluginsFromPluginSearchPath();
// Load settings files.
vtkSMSettings::LoadSettings();
vtkSMSettings::GetInstance()->LoadSettings();
}
//----------------------------------------------------------------------------
......@@ -201,6 +201,13 @@ void vtkInitializationHelper::StandaloneInitialize()
//----------------------------------------------------------------------------
void vtkInitializationHelper::Finalize()
{
// Write out settings file(s)
bool savingSucceeded = vtkSMSettings::GetInstance()->SaveSettings();
if (!savingSucceeded)
{
cerr << "Saving settings file failed\n";
}
vtkSMProxyManager::Finalize();
vtkProcessModule::Finalize();
......
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