Browse Source

Save/restore side panel visiblity for carla-control

tags/v2.3.0-RC1
falkTX 4 years ago
parent
commit
222f047b97
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 2 additions and 4 deletions
  1. +2
    -4
      source/frontend/carla_host.py

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

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

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

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

diskFolders = []

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

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



Loading…
Cancel
Save