allow Open button to be enabled if only an Accessor is present (we'll guess the rest)

This commit is contained in:
Michael Becker 2019-12-23 02:49:49 -05:00
parent bf643ee50e
commit 0868648961
No known key found for this signature in database
GPG Key ID: 506F54899E2BFED7

View File

@ -225,7 +225,7 @@ namespace UniversalEditor.UserInterface.Dialogs
txtObjectModel.Text = String.Empty;
}
Buttons[0].Enabled = (ObjectModel != null && DataFormat != null && Accessor != null);
Buttons[0].Enabled = (Accessor != null && (Mode == DocumentPropertiesDialogMode.Open || (Mode == DocumentPropertiesDialogMode.Save && ObjectModel != null && DataFormat != null)));
}
private string DataFormatReferenceToString(DataFormatReference dfr)