From 09c718a7495ec9f2adbb685ee5bb1c6df404b3b5 Mon Sep 17 00:00:00 2001 From: falkTX Date: Sun, 5 Apr 2015 23:08:22 +0200 Subject: [PATCH] Fix initial active state for carla-control --- source/carla_skin.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/source/carla_skin.py b/source/carla_skin.py index e536147af..bf0633a29 100755 --- a/source/carla_skin.py +++ b/source/carla_skin.py @@ -241,13 +241,10 @@ class AbstractPluginSlot(QFrame, PluginEditParentMeta): self.fPluginInfo = host.get_plugin_info(self.fPluginId) self.fSkinStyle = skinStyle - #if not gCarla.isLocal: - #self.fPluginInfo['hints'] &= ~PLUGIN_HAS_CUSTOM_UI - # ------------------------------------------------------------- # Internal stuff - self.fIsActive = bool(host.get_internal_parameter_value(self.fPluginId, PARAMETER_ACTIVE) >= 0.5) + self.fIsActive = False self.fIsSelected = False self.fLastGreenLedState = False @@ -369,6 +366,8 @@ class AbstractPluginSlot(QFrame, PluginEditParentMeta): #------------------------------------------------------------------ def ready(self): + self.fIsActive = bool(self.host.get_internal_parameter_value(self.fPluginId, PARAMETER_ACTIVE) >= 0.5) + if self.b_enable is not None: self.b_enable.setChecked(self.fIsActive) self.b_enable.clicked.connect(self.slot_enableClicked)