don't set response value since this causes the dialog to close abruptly; set default button instead to still get 'suggested' theme on gtk

This commit is contained in:
Michael Becker 2020-03-19 11:01:14 -04:00
parent cd3498d78f
commit f117bad02e
No known key found for this signature in database
GPG Key ID: 389DFF5D73781A12

View File

@ -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";