Skip to content

Home Information - Your home, your data, organized.

Python

Added alphabetical ordering of the subsystem settings in the tabbed panels (#244)

Thiago Trautwein Santos64076db38c0a
diff --git a/src/hi/apps/config/settings_manager.py b/src/hi/apps/config/settings_manager.py
index 2b548f7c..2fd65976 100644
--- a/src/hi/apps/config/settings_manager.py
+++ b/src/hi/apps/config/settings_manager.py
@@ -41,6 +41,7 @@ class SettingsManager( Singleton ):
def reload(self):
with self._attributes_lock:
+ self._subsystem_list = sorted(self._subsystem_list, key=lambda s: s.name)
self._attribute_value_map = dict()
for subsystem in self._subsystem_list:
try: