Browse Source

Fix some issues in carla-plugin

- don't refresh patchbay if rack
- fix rack size
- don't show time panel
tags/1.9.5
falkTX 10 years ago
parent
commit
177b11965c
2 changed files with 14 additions and 11 deletions
  1. +12
    -9
      source/carla_host.py
  2. +2
    -2
      source/widgets/racklistwidget.py

+ 12
- 9
source/carla_host.py View File

@@ -215,7 +215,9 @@ class HostWindow(QMainWindow):

self.fPanelTime = CarlaPanelTime(host, self)
self.fPanelTime.setEnabled(False)
QTimer.singleShot(0, self.fPanelTime.show)

if not host.isPlugin:
QTimer.singleShot(0, self.fPanelTime.show)

# ----------------------------------------------------------------------------------------------------
# Set up GUI (rack)
@@ -671,9 +673,11 @@ class HostWindow(QMainWindow):
self.projectLoadingFinished()

# just in case
self.removeAllPlugins()
self.host.remove_all_plugins()

if not self.host.isPlugin:
self.removeAllPlugins()

# --------------------------------------------------------------------------------------------------------
# Plugins (macros)

@@ -885,15 +889,12 @@ class HostWindow(QMainWindow):
def slot_canvasRefresh(self):
patchcanvas.clear()

if self.host.processMode == ENGINE_PROCESS_MODE_CONTINUOUS_RACK and self.host.isPlugin:
return

if self.host.is_engine_running():
self.host.patchbay_refresh(self.fExternalPatchbay)

for pitem in self.fPluginList:
if pitem is None:
break

pitem.getEditDialog().reloadAll()

QTimer.singleShot(1000 if self.fSavedSettings[CARLA_KEY_CANVAS_EYE_CANDY] else 0, self.ui.miniCanvasPreview.update)

@pyqtSlot()
@@ -1280,7 +1281,9 @@ class HostWindow(QMainWindow):
self.setupCanvas()
self.slot_miniCanvasCheckAll()

if self.host.is_engine_running():
if self.host.processMode == ENGINE_PROCESS_MODE_CONTINUOUS_RACK and self.host.isPlugin:
pass
elif self.host.is_engine_running():
self.host.patchbay_refresh(self.fExternalPatchbay)

# --------------------------------------------------------------------------------------------------------


+ 2
- 2
source/widgets/racklistwidget.py View File

@@ -103,7 +103,7 @@ class RackListItem(QListWidgetItem):
self.fWidget = createPluginSlot(self.fParent, self.host, self.fPluginId, self.fUseSkins)
self.fWidget.setFixedHeight(self.fWidget.getFixedHeight())

self.setSizeHint(QSize(700, self.fWidget.getFixedHeight()))
self.setSizeHint(QSize(620, self.fWidget.getFixedHeight()))

self.fParent.setItemWidget(self, self.fWidget)

@@ -124,7 +124,7 @@ class RackListWidget(QListWidget):
self.fSupportedExtensions = []
self.fWasLastDragValid = False

self.setMinimumWidth(740)
self.setMinimumWidth(640)
self.setSelectionMode(QAbstractItemView.SingleSelection)
self.setSortingEnabled(False)



Loading…
Cancel
Save