Browse Source

Fix initial active state for carla-control

tags/1.9.7
falkTX 11 years ago
parent
commit
09c718a749
1 changed files with 3 additions and 4 deletions
  1. +3
    -4
      source/carla_skin.py

+ 3
- 4
source/carla_skin.py View File

@@ -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)


Loading…
Cancel
Save