From 1c7494e29ee23402d36eb46973cb02e2c4e092ce Mon Sep 17 00:00:00 2001 From: donoban Date: Wed, 4 Nov 2020 23:51:31 +0100 Subject: [PATCH] Save 'compactview' state --- qubesmanager/qube_manager.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/qubesmanager/qube_manager.py b/qubesmanager/qube_manager.py index 63733c6..2426a59 100644 --- a/qubesmanager/qube_manager.py +++ b/qubesmanager/qube_manager.py @@ -950,6 +950,9 @@ class VmManagerWindow(ui_qubemanager.Ui_VmManagerWindow, QMainWindow): if not self.manager_settings.value("view/toolbar_visible", defaultValue=True): self.action_toolbar.setChecked(False) + if self.manager_settings.value("view/compactview", + defaultValue="false") != "false": + self.action_compact_view.setChecked(True) # load last window size self.resize(self.manager_settings.value("window_size", @@ -1398,6 +1401,8 @@ class VmManagerWindow(ui_qubemanager.Ui_VmManagerWindow, QMainWindow): self.toolbar.setToolButtonStyle(Qt.ToolButtonIconOnly) else: self.toolbar.setToolButtonStyle(Qt.ToolButtonTextUnderIcon) + if self.settings_loaded: + self.manager_settings.setValue('view/compactview', checked) def showhide_menubar(self, checked): self.menubar.setVisible(checked)