Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
sonnyp committed Sep 17, 2023
1 parent 9944fd5 commit 003f15f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PanelUI.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export default function PanelUI({
dropdown_ui_lang,
"selected",
(value) => {
const lang = ui_languages.indexOf(value);
const lang = ui_languages[value];
onChangeLang(lang).catch(logError);
},
);
Expand Down Expand Up @@ -175,7 +175,7 @@ export default function PanelUI({
}
}

settings.set_enum("user-interface-language", dropdown_ui_lang.selected);
settings.set_string("user-interface-language", lang.id);
setupLanguage();
}

Expand Down

0 comments on commit 003f15f

Please sign in to comment.