From e9fcb9277abb47e64918c605e205e954758faca5 Mon Sep 17 00:00:00 2001 From: piotr Date: Wed, 12 Oct 2022 22:49:26 +0200 Subject: [PATCH] sort locales before building combo --- nwg_shell_config/main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nwg_shell_config/main.py b/nwg_shell_config/main.py index d79d16d..f70097c 100644 --- a/nwg_shell_config/main.py +++ b/nwg_shell_config/main.py @@ -414,7 +414,9 @@ def __init__(self): self.combo_interface_locale.append("auto", "auto") self.combo_interface_locale.set_tooltip_text(voc["interface-locale-tooltip"]) locale_dir = os.path.join(dir_name, "langs") - for entry in os.listdir(locale_dir): + entries = os.listdir(locale_dir) + entries.sort() + for entry in entries: loc = entry.split(".")[0] self.combo_interface_locale.append(loc, loc) if shell_data["interface-locale"]: