1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-02-17 00:07:54 +01:00

ShuttleGui lets you specify whether a button is default. Use that.

This commit is contained in:
Paul Licameli
2019-11-19 11:33:37 -05:00
parent cd4266792a
commit bca0afd52e
9 changed files with 32 additions and 18 deletions

View File

@@ -135,7 +135,7 @@ HistoryWindow::HistoryWindow(AudacityProject *parent, UndoManager *manager):
S.StartHorizontalLay(wxALIGN_RIGHT, false);
{
S.SetBorder(10);
S.Id(wxID_OK).AddButton(_("&OK"))->SetDefault();
S.Id(wxID_OK).AddButton(_("&OK"), wxALIGN_CENTER, true);
}
S.EndHorizontalLay();
}