From 4254f444dbebda98e50d4c24448246715bad353a Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Mon, 24 Jun 2019 12:54:43 -0500 Subject: [PATCH] added a service category in settings for all services --- src/controller/configuration.py | 5 +++-- src/wxUI/configuration.py | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/controller/configuration.py b/src/controller/configuration.py index 6c22597..d7e0d2e 100644 --- a/src/controller/configuration.py +++ b/src/controller/configuration.py @@ -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") diff --git a/src/wxUI/configuration.py b/src/wxUI/configuration.py index 1001468..97c12f6 100644 --- a/src/wxUI/configuration.py +++ b/src/wxUI/configuration.py @@ -28,6 +28,7 @@ class configurationDialog(widgetUtils.BaseDialog): self.general.SetFocus() def realize(self): + self.notebook.AddPage(wx.Panel(self.notebook, wx.NewId()), _("Services")) self.sizer.Add(self.notebook, 0, wx.ALL, 5) ok_cancel_box = wx.BoxSizer(wx.HORIZONTAL) ok = wx.Button(self.panel, wx.ID_OK, _("Save"))