Улучшение кода main.py и конфигурации

This commit is contained in:
2025-09-14 20:12:28 +03:00
parent 9453b3b50b
commit 9da9e98547
7 changed files with 270 additions and 262 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ def apply(config: dict) -> bool:
# Insert new PreferenceCategory before the last element
last = root[-1] # last element
pos = root.index(last)
for section, items in config["settings_urls"].items():
for section, items in config["menu"].items():
root.insert(pos, make_category(config["xml_ns"], section, items))
pos += 1