Check if components should be displayer for a service
This commit is contained in:
parent
52265c4f3e
commit
2e67a1ae63
@ -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):
|
||||||
|
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user