properly notify of changes to PaletteEditor

This commit is contained in:
Michael Becker 2019-12-16 03:52:32 -05:00
parent 7831d218de
commit ac5c730c85
No known key found for this signature in database
GPG Key ID: 389DFF5D73781A12

View File

@ -92,7 +92,11 @@ namespace UniversalEditor.Plugins.Multimedia.UserInterface.Editors.Multimedia.Pa
if (e.Key == MBS.Framework.UserInterface.Input.Keyboard.KeyboardKey.Enter)
{
if (SelectedEntry != null)
{
BeginEdit();
SelectedEntry.Name = txtColorName.Text;
EndEdit();
}
}
}
@ -110,7 +114,9 @@ namespace UniversalEditor.Plugins.Multimedia.UserInterface.Editors.Multimedia.Pa
dlg.SelectedColor = SelectedEntry.Color;
if (dlg.ShowDialog() == DialogResult.OK)
{
BeginEdit();
SelectedEntry.Color = dlg.SelectedColor;
EndEdit();
}
}