ATOM-15486 Saving material editor user settings

https://jira.agscollab.com/browse/ATOM-15486
This commit is contained in:
guthadam
2021-05-05 23:31:17 -05:00
parent 724add6365
commit e80de63d55
25 changed files with 463 additions and 361 deletions
@@ -284,7 +284,7 @@ namespace MaterialEditor
AZ_Assert(context, "No serialize context");
char resolvedPath[AZ_MAX_PATH_LEN] = "";
AZ::IO::FileIOBase::GetInstance()->ResolvePath("@user@/EditorUserSettings.xml", resolvedPath, AZ_ARRAY_SIZE(resolvedPath));
AZ::IO::FileIOBase::GetInstance()->ResolvePath("@user@/MaterialEditorUserSettings.xml", resolvedPath, AZ_ARRAY_SIZE(resolvedPath));
m_localUserSettings.Save(resolvedPath, context);
}
}
@@ -546,6 +546,9 @@ namespace MaterialEditor
void MaterialEditorApplication::Stop()
{
MaterialEditor::MaterialEditorWindowFactoryRequestBus::Broadcast(
&MaterialEditor::MaterialEditorWindowFactoryRequestBus::Handler::DestroyMaterialEditorWindow);
UnloadSettings();
AzFramework::Application::Stop();
}