From c7bb92066403f498594a7aeb00304bd788554783 Mon Sep 17 00:00:00 2001 From: Michael Becker Date: Tue, 12 May 2020 08:39:33 -0400 Subject: [PATCH] fix suggested button appearance --- .../Dialogs/DocumentPropertiesDialog.glade | 3 +++ .../Dialogs/CustomOptionsDialog.cs | 1 + 2 files changed, 4 insertions(+) diff --git a/Content/UniversalEditor.Content.PlatformIndependent/Dialogs/DocumentPropertiesDialog.glade b/Content/UniversalEditor.Content.PlatformIndependent/Dialogs/DocumentPropertiesDialog.glade index 1e1e6987..c2ed1b73 100644 --- a/Content/UniversalEditor.Content.PlatformIndependent/Dialogs/DocumentPropertiesDialog.glade +++ b/Content/UniversalEditor.Content.PlatformIndependent/Dialogs/DocumentPropertiesDialog.glade @@ -24,6 +24,9 @@ True True True + True diff --git a/Libraries/UniversalEditor.UserInterface/Dialogs/CustomOptionsDialog.cs b/Libraries/UniversalEditor.UserInterface/Dialogs/CustomOptionsDialog.cs index 43049179..d8bf1fd7 100644 --- a/Libraries/UniversalEditor.UserInterface/Dialogs/CustomOptionsDialog.cs +++ b/Libraries/UniversalEditor.UserInterface/Dialogs/CustomOptionsDialog.cs @@ -41,6 +41,7 @@ namespace UniversalEditor.UserInterface.Dialogs Buttons.Add(new Button(StockType.Cancel)); // Buttons[0].ResponseValue = (int)DialogResult.OK; + DefaultButton = Buttons[0]; Buttons[1].ResponseValue = (int)DialogResult.Cancel; }