From f117bad02ee9fa8b9231ec2a47183bf4d6341d49 Mon Sep 17 00:00:00 2001 From: Michael Becker Date: Thu, 19 Mar 2020 11:01:14 -0400 Subject: [PATCH] don't set response value since this causes the dialog to close abruptly; set default button instead to still get 'suggested' theme on gtk --- .../UniversalEditor.UserInterface/Dialogs/NewDialog.Designer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CSharp/Libraries/UniversalEditor.UserInterface/Dialogs/NewDialog.Designer.cs b/CSharp/Libraries/UniversalEditor.UserInterface/Dialogs/NewDialog.Designer.cs index 38f78cb5..f09a60ba 100644 --- a/CSharp/Libraries/UniversalEditor.UserInterface/Dialogs/NewDialog.Designer.cs +++ b/CSharp/Libraries/UniversalEditor.UserInterface/Dialogs/NewDialog.Designer.cs @@ -114,7 +114,7 @@ namespace UniversalEditor.UserInterface.Dialogs this.Buttons.Add(new Button(StockType.Cancel, DialogResult.Cancel)); this.Buttons[0].StockType = StockType.New; - this.Buttons[0].ResponseValue = (int)DialogResult.OK; + DefaultButton = this.Buttons[0]; this.Buttons[0].Click += cmdOK_Click; this.Text = "New File";