Улучшение кода main.py и конфигурации
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user