From 222f047b974ea0268ff7db5bdfc77dd677fd9ca6 Mon Sep 17 00:00:00 2001 From: falkTX Date: Mon, 28 Dec 2020 14:55:56 +0000 Subject: [PATCH] Save/restore side panel visiblity for carla-control --- source/frontend/carla_host.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/source/frontend/carla_host.py b/source/frontend/carla_host.py index 4bf05f5b4..cd115e403 100644 --- a/source/frontend/carla_host.py +++ b/source/frontend/carla_host.py @@ -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)