From 0e5feeac0db48636cf4ea5473e905680b9829ee7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marta=20Marczykowska-G=C3=B3recka?= Date: Fri, 8 Sep 2017 22:39:54 +0200 Subject: [PATCH] Remove obsolete sections from VM Settings: - drive image - paths --- qubesmanager/settings.py | 24 ++--- ui/settingsdlg.ui | 223 --------------------------------------- 2 files changed, 12 insertions(+), 235 deletions(-) diff --git a/qubesmanager/settings.py b/qubesmanager/settings.py index 5855f51..0423038 100755 --- a/qubesmanager/settings.py +++ b/qubesmanager/settings.py @@ -454,18 +454,18 @@ class VMSettingsWindow(Ui_SettingsDialog, QDialog): self.vm.features.get('services.meminfo-writer', True)) self.max_mem_size.setEnabled(self.include_in_balancing.isChecked()) - try: - self.root_img_path.setText('{volume.pool}:{volume.vid}'.format( - volume=self.vm.volumes['root'])) - except AttributeError: - self.root_img_path.setText("n/a") - try: - self.volatile_img_path.setText('{volume.pool}:{volume.vid}'.format( - volume=self.vm.volumes['volatile'])) - except AttributeError: - self.volatile_img_path.setText('n/a') - self.private_img_path.setText('{volume.pool}:{volume.vid}'.format( - volume=self.vm.volumes['private'])) +# try: +# self.root_img_path.setText('{volume.pool}:{volume.vid}'.format( +# volume=self.vm.volumes['root'])) +# except AttributeError: +# self.root_img_path.setText("n/a") +# try: +# self.volatile_img_path.setText('{volume.pool}:{volume.vid}'.format( +# volume=self.vm.volumes['volatile'])) +# except AttributeError: +# self.volatile_img_path.setText('n/a') +# self.private_img_path.setText('{volume.pool}:{volume.vid}'.format( +# volume=self.vm.volumes['private'])) #kernel diff --git a/ui/settingsdlg.ui b/ui/settingsdlg.ui index d2a04b1..207c77e 100644 --- a/ui/settingsdlg.ui +++ b/ui/settingsdlg.ui @@ -538,63 +538,6 @@ - - - - true - - - Paths - - - - QFormLayout::AllNonFixedFieldsGrow - - - - - root img: - - - - - - - root_img_path - - - - - - - root volatile img: - - - - - - - volatile_path - - - - - - - private img: - - - - - - - private_path - - - - - - @@ -608,172 +551,6 @@ - - - - Other - - - - - - Default DispVM: - - - default_dispvm - - - - - - - - - - - - - QLayout::SetDefaultConstraint - - - 0 - - - - - true - - - - 0 - 0 - - - - Kernel - - - - QFormLayout::AllNonFixedFieldsGrow - - - - - Kernel: - - - kernel - - - - - - - - - - Kernel opts: - - - - - - - - 50 - false - - - - [] - - - - - - - - - - - 0 - 0 - - - - Additional drive - - - true - - - true - - - - - - - - - - - - Path: - - - - - - - - - - Backend domain: - - - - - - - Type: - - - - - - - ... - - - - - - - true - - - - 75 - true - - - - color: rgb(255, 0, 0); - - - New drive will be used only at next VM startup - - - Qt::AutoText - - - - - - - -