Browse Source

Minor calf skin corrections

tags/1.9.4
falkTX 11 years ago
parent
commit
1cd2b27f35
1 changed files with 19 additions and 1 deletions
  1. +19
    -1
      source/carla_skin.py

+ 19
- 1
source/carla_skin.py View File

@@ -593,7 +593,7 @@ class PluginSlot_Calf(PluginSlot):
self.ui.b_gui.setTopText(self.tr("GUI"), self.fButtonColorOff, self.fButtonFont) self.ui.b_gui.setTopText(self.tr("GUI"), self.fButtonColorOff, self.fButtonFont)


self.ui.led_midi.setColor(self.ui.led_midi.CALF) self.ui.led_midi.setColor(self.ui.led_midi.CALF)
#self.ui.led_midi.setEnabled(False)
self.ui.led_midi.setEnabled(False)


self.ui.peak_in.setColor(self.ui.peak_in.GREEN) self.ui.peak_in.setColor(self.ui.peak_in.GREEN)
self.ui.peak_in.setChannels(self.fPeaksInputCount) self.ui.peak_in.setChannels(self.fPeaksInputCount)
@@ -609,6 +609,24 @@ class PluginSlot_Calf(PluginSlot):
self.ui.label_name.setFont(labelFont) self.ui.label_name.setFont(labelFont)
self.ui.label_name.setText(self.fPluginInfo['name']) self.ui.label_name.setText(self.fPluginInfo['name'])


audioCount = Carla.host.get_audio_port_count_info(self.fPluginId)
midiCount = Carla.host.get_midi_port_count_info(self.fPluginId)

if audioCount['ins'] == 0:
self.ui.label_audio_in.hide()
self.ui.peak_in.hide()

if audioCount['outs'] > 0:
self.ui.peak_out.setMinimumWidth(200)

if audioCount['outs'] == 0:
self.ui.label_audio_out.hide()
self.ui.peak_out.hide()

if midiCount['ins'] == 0:
self.ui.label_midi.hide()
self.ui.led_midi.hide()

# ------------------------------------------------------------- # -------------------------------------------------------------
# Set-up connections # Set-up connections




Loading…
Cancel
Save