properly notify Editor that it's been changed when the Document Properties settings providers have been modified

This commit is contained in:
Michael Becker 2020-06-01 00:49:35 -04:00
parent 54e11b8da6
commit 1f1f4a9fb0
No known key found for this signature in database
GPG Key ID: 506F54899E2BFED7

View File

@ -771,12 +771,18 @@ namespace UniversalEditor.UserInterface
for (int i = 0; i < providers.Length; i++)
{
providers[i].LoadSettings();
dialog.SettingsProviders.Add(providers[i]);
}
if (dialog.ShowDialog() == DialogResult.OK)
{
// TODO: update settings
BeginEdit();
for (int i = 0; i < providers.Length; i++)
{
providers[i].SaveSettings();
}
EndEdit();
}
return true;
}