forked from mia/Aegisub
Change the spell checker and thesaurus language lists to radio items rather than check items
Originally committed to SVN as r6712.
This commit is contained in:
parent
0a64763f2f
commit
fb5f94ca74
1 changed files with 2 additions and 2 deletions
|
@ -837,11 +837,11 @@ void SubsTextEditCtrl::AddThesaurusEntries(wxMenu &menu) {
|
||||||
|
|
||||||
wxMenu *SubsTextEditCtrl::GetLanguagesMenu(int base_id, wxString const& curLang, wxArrayString const& langs) {
|
wxMenu *SubsTextEditCtrl::GetLanguagesMenu(int base_id, wxString const& curLang, wxArrayString const& langs) {
|
||||||
wxMenu *languageMenu = new wxMenu;
|
wxMenu *languageMenu = new wxMenu;
|
||||||
languageMenu->AppendCheckItem(base_id, _("Disable"))->Check(curLang.empty());
|
languageMenu->AppendRadioItem(base_id, _("Disable"))->Check(curLang.empty());
|
||||||
|
|
||||||
for (size_t i = 0; i < langs.size(); ++i) {
|
for (size_t i = 0; i < langs.size(); ++i) {
|
||||||
const wxLanguageInfo *info = wxLocale::FindLanguageInfo(langs[i]);
|
const wxLanguageInfo *info = wxLocale::FindLanguageInfo(langs[i]);
|
||||||
languageMenu->AppendCheckItem(base_id + i + 1, info ? info->Description : langs[i])->Check(langs[i] == curLang);
|
languageMenu->AppendRadioItem(base_id + i + 1, info ? info->Description : langs[i])->Check(langs[i] == curLang);
|
||||||
}
|
}
|
||||||
|
|
||||||
return languageMenu;
|
return languageMenu;
|
||||||
|
|
Loading…
Reference in a new issue