Browse Source

carla-control: don't show side panel

Signed-off-by: falkTX <falktx@falktx.com>
tags/v2.1-alpha2
falkTX 5 years ago
parent
commit
42bac9787a
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 4 additions and 5 deletions
  1. +4
    -5
      source/frontend/carla_host.py

+ 4
- 5
source/frontend/carla_host.py View File

@@ -278,9 +278,6 @@ class HostWindow(QMainWindow):
if WINDOWS:
self.ui.tabWidget.tabBar().hide()

if host.isControl:
self.ui.dockWidget.hide()

# ----------------------------------------------------------------------------------------------------
# Set up GUI (disk)

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

settings.setValue("Geometry", self.saveGeometry())
settings.setValue("ShowToolbar", self.ui.toolBar.isEnabled())
settings.setValue("ShowSidePanel", self.ui.dockWidget.isEnabled())

if not self.host.isControl:
settings.setValue("ShowSidePanel", self.ui.dockWidget.isEnabled())

diskFolders = []

@@ -1628,7 +1627,7 @@ class HostWindow(QMainWindow):
#else:
#self.ui.splitter.setSizes([210, 99999])

showSidePanel = settings.value("ShowSidePanel", True, type=bool)
showSidePanel = settings.value("ShowSidePanel", True, type=bool) and not self.host.isControl
self.ui.act_settings_show_side_panel.setChecked(showSidePanel)
self.slot_showSidePanel(showSidePanel)



Loading…
Cancel
Save