From 086864896143a0fc83d4f11015d62d4e27d9c35e Mon Sep 17 00:00:00 2001 From: Michael Becker Date: Mon, 23 Dec 2019 02:49:49 -0500 Subject: [PATCH] allow Open button to be enabled if only an Accessor is present (we'll guess the rest) --- .../Dialogs/DocumentPropertiesDialog.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CSharp/Libraries/UniversalEditor.UserInterface/Dialogs/DocumentPropertiesDialog.cs b/CSharp/Libraries/UniversalEditor.UserInterface/Dialogs/DocumentPropertiesDialog.cs index 87121963..d97d3c32 100644 --- a/CSharp/Libraries/UniversalEditor.UserInterface/Dialogs/DocumentPropertiesDialog.cs +++ b/CSharp/Libraries/UniversalEditor.UserInterface/Dialogs/DocumentPropertiesDialog.cs @@ -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)