From 2e67a1ae63eb0a31f33da38acd31143ed17d5495 Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Tue, 18 Jun 2019 16:42:31 -0500 Subject: [PATCH] Check if components should be displayer for a service --- src/controller/configuration.py | 2 ++ src/extractors/youtube.py | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/controller/configuration.py b/src/controller/configuration.py index 746bff7..caaf626 100644 --- a/src/controller/configuration.py +++ b/src/controller/configuration.py @@ -20,6 +20,8 @@ class configuration(object): panel = getattr(i, "settings")(self.view.notebook) self.view.notebook.AddPage(panel, panel.name) panel.load() + if hasattr(panel, "on_enabled"): + panel.on_enabled() self.view.realize() def save(self): diff --git a/src/extractors/youtube.py b/src/extractors/youtube.py index 7f86635..ae7ddae 100644 --- a/src/extractors/youtube.py +++ b/src/extractors/youtube.py @@ -120,7 +120,6 @@ class settings(base.baseSettings): self.map.append(("transcode", self.transcode)) sizer.Add(self.transcode, 0, wx.ALL, 5) self.SetSizer(sizer) - self.on_enabled() def on_enabled(self, *args, **kwargs): for i in self.map: