mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-26 23:33:49 +01:00
ShuttleGui lets you specify whether a button is default. Use that.
This commit is contained in:
@@ -238,9 +238,10 @@ AboutDialog::AboutDialog(wxWindow * parent)
|
||||
PopulateLicensePage( S );
|
||||
}
|
||||
S.EndNotebook();
|
||||
wxButton *ok = safenew wxButton(S.GetParent(), wxID_OK, _("OK"));
|
||||
ok->SetDefault();
|
||||
S.Prop(0).AddWindow( ok );
|
||||
|
||||
S.Id(wxID_OK)
|
||||
.Prop(0)
|
||||
.AddButton(_("OK"), wxALIGN_CENTER, true);
|
||||
|
||||
Fit();
|
||||
this->Centre();
|
||||
|
||||
Reference in New Issue
Block a user