added a service category in settings for all services

This commit is contained in:
2019-06-24 12:54:43 -05:00
parent 7756d71b32
commit 4254f444db
2 changed files with 4 additions and 2 deletions

View File

@@ -21,15 +21,16 @@ class configuration(object):
if str(i["id"]) == current_output_device:
self.view.set_value("general", "output_device", i["name"])
break
self.view.realize()
extractors = get_extractors(import_all=True)
for i in extractors:
if hasattr(i, "settings"):
panel = getattr(i, "settings")(self.view.notebook)
self.view.notebook.AddPage(panel, panel.name)
self.view.notebook.InsertSubPage(1, panel, panel.name)
panel.load()
if hasattr(panel, "on_enabled"):
panel.on_enabled()
self.view.realize()
def save(self):
selected_output_device = self.view.get_value("general", "output_device")