mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-25 07:43:54 +02:00
ShuttleGui::AddChoice takes int to specify selection, with a default...
... This makes things brief and where non-default avoids some repetition of literal strings
This commit is contained in:
@@ -77,12 +77,8 @@ LangChoiceDialog::LangChoiceDialog(wxWindow * parent,
|
||||
{
|
||||
SetName(GetTitle());
|
||||
GetLanguages(mLangCodes, mLangNames);
|
||||
int ndx = make_iterator_range( mLangCodes ).index( GetSystemLanguageCode() );
|
||||
wxString lang;
|
||||
|
||||
if (ndx != wxNOT_FOUND) {
|
||||
lang = mLangNames[ndx];
|
||||
}
|
||||
int lang =
|
||||
make_iterator_range( mLangCodes ).index( GetSystemLanguageCode() );
|
||||
|
||||
ShuttleGui S(this, eIsCreating);
|
||||
|
||||
@@ -92,8 +88,8 @@ LangChoiceDialog::LangChoiceDialog(wxWindow * parent,
|
||||
{
|
||||
S.SetBorder(15);
|
||||
mChoice = S.AddChoice(_("Choose Language for Audacity to use:"),
|
||||
lang,
|
||||
&mLangNames);
|
||||
&mLangNames,
|
||||
lang);
|
||||
}
|
||||
S.EndVerticalLay();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user