Skip to content

Commit

Permalink
Merge pull request #1 from Frocat64/patch-1
Browse files Browse the repository at this point in the history
this should fix it if im not stupid
  • Loading branch information
Minionguyjpro authored Mar 3, 2023
2 parents 7546215 + c4740d7 commit ba15cc5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions source/scenes/setting_menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,9 @@ void Sem_init(void) {
(new SelectorView(0, 0, 320, 35))
->set_texts({
(std::function<std::string ()>) []() { return LOCALIZED(LANG_EN); },
(std::function<std::string ()>) []() { return LOCALIZED(LANG_JA); }
(std::function<std::string ()>) []() { return LOCALIZED(LANG_JA); },
(std::function<std::string ()>) []() { return LOCALIZED(LANG_NL); }
}, var_lang == "ja" ? 1 : 0)
}, var_lang == "ja" ? 1 : var_lang == "nl" ? 2:0)
->set_title([](const SelectorView &) { return LOCALIZED(UI_LANGUAGE); })
->set_on_change([](const SelectorView &view) {
auto next_lang = std::vector<std::string>{"en", "ja", "nl"}[view.selected_button];
Expand All @@ -242,12 +242,12 @@ void Sem_init(void) {
(new SelectorView(0, 0, 320, 35))
->set_texts({
(std::function<std::string ()>) []() { return LOCALIZED(LANG_EN); },
(std::function<std::string ()>) []() { return LOCALIZED(LANG_JA); }
(std::function<std::string ()>) []() { return LOCALIZED(LANG_JA); },
(std::function<std::string ()>) []() { return LOCALIZED(LANG_NL); }
}, var_lang_content == "ja" ? 1 : var_lang_content == "nl" ? 2 : 0)
->set_title([](const SelectorView &) { return LOCALIZED(CONTENT_LANGUAGE); })
->set_on_change([](const SelectorView &view) {
auto next_lang = std::vector<std::string>{"en", "ja"}[view.selected_button];
auto next_lang = std::vector<std::string>{"en", "ja", "nl"}[view.selected_button];
if (var_lang_content != next_lang) {
var_lang_content = next_lang;
misc_tasks_request(TASK_SAVE_SETTINGS);
Expand Down

0 comments on commit ba15cc5

Please sign in to comment.