make the language list a menu instead of a dropdown fixes #915

This commit is contained in:
alfrix
2023-05-20 05:00:45 -06:00
parent 4db7fd288c
commit be13c1086e
4 changed files with 26 additions and 7 deletions

View File

@@ -220,7 +220,7 @@ class KlipperScreenConfig:
self.configurable_options = [
{"language": {
"section": "main", "name": _("Language"), "type": "dropdown", "value": "system_lang",
"section": "main", "name": _("Language"), "type": None, "value": "system_lang",
"callback": screen.change_language, "options": [
{"name": _("System") + " " + _("(default)"), "value": "system_lang"}]}},
{"theme": {
@@ -279,10 +279,6 @@ class KlipperScreenConfig:
self.configurable_options.extend(panel_options)
lang_opt = self.configurable_options[0]['language']['options']
for lang in self.lang_list:
lang_opt.append({"name": lang, "value": lang})
t_path = os.path.join(klipperscreendir, 'styles')
themes = [d for d in os.listdir(t_path) if (not os.path.isfile(os.path.join(t_path, d)) and d != "z-bolt")]
themes.sort()