From 7ef2a3b926938b65c63618a9e1a656f692d36f4c Mon Sep 17 00:00:00 2001 From: falkTX Date: Mon, 17 Feb 2014 18:12:51 +0000 Subject: [PATCH] Hide canvas menu options in rack mode --- source/carla_host.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source/carla_host.py b/source/carla_host.py index fd229062f..e8cfdb16b 100644 --- a/source/carla_host.py +++ b/source/carla_host.py @@ -320,12 +320,14 @@ class HostWindow(QMainWindow): dialog = CarlaSettingsW(self, hasCanvas, hasCanvasGL) return dialog.exec_() - def setupContainer(self, showMiniCanvas, canvasThemeData = []): - if showMiniCanvas: + def setupContainer(self, showCanvas, canvasThemeData = []): + if showCanvas: canvasWidth, canvasHeight, canvasBg, canvasBrush, canvasPen = canvasThemeData self.ui.miniCanvasPreview.setViewTheme(canvasBg, canvasBrush, canvasPen) self.ui.miniCanvasPreview.init(self.fContainer.scene, canvasWidth, canvasHeight, self.fSavedSettings[CARLA_KEY_CUSTOM_PAINTING]) else: + self.ui.act_settings_show_meters.setVisible(False) + self.ui.act_settings_show_keyboard.setVisible(False) self.ui.miniCanvasPreview.hide() self.ui.splitter.insertWidget(1, self.fContainer)