Check if components should be displayer for a service

This commit is contained in:
Manuel Cortez 2019-06-18 16:42:31 -05:00
parent 52265c4f3e
commit 2e67a1ae63
2 changed files with 2 additions and 1 deletions

View File

@ -20,6 +20,8 @@ class configuration(object):
panel = getattr(i, "settings")(self.view.notebook) panel = getattr(i, "settings")(self.view.notebook)
self.view.notebook.AddPage(panel, panel.name) self.view.notebook.AddPage(panel, panel.name)
panel.load() panel.load()
if hasattr(panel, "on_enabled"):
panel.on_enabled()
self.view.realize() self.view.realize()
def save(self): def save(self):

View File

@ -120,7 +120,6 @@ class settings(base.baseSettings):
self.map.append(("transcode", self.transcode)) self.map.append(("transcode", self.transcode))
sizer.Add(self.transcode, 0, wx.ALL, 5) sizer.Add(self.transcode, 0, wx.ALL, 5)
self.SetSizer(sizer) self.SetSizer(sizer)
self.on_enabled()
def on_enabled(self, *args, **kwargs): def on_enabled(self, *args, **kwargs):
for i in self.map: for i in self.map: