fix suggested button appearance

This commit is contained in:
Michael Becker 2020-05-12 08:39:33 -04:00
parent c24bf4d393
commit c7bb920664
No known key found for this signature in database
GPG Key ID: 506F54899E2BFED7
2 changed files with 4 additions and 0 deletions

View File

@ -24,6 +24,9 @@
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="use_stock">True</property>
<style>
<class name="suggested-action"/>
</style>
</object>
<packing>
<property name="expand">True</property>

View File

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