settings: misc removed
This commit is contained in:
parent
cd2d3d7c0e
commit
092d38e09a
@ -273,11 +273,6 @@ class VMSettingsWindow(Ui_SettingsDialog, QDialog):
|
||||
except AttributeError:
|
||||
self.autostart_vm.setVisible(False)
|
||||
|
||||
# XXX - False?
|
||||
self.seamless_gui.setVisible(True)
|
||||
self.seamless_gui.setChecked(
|
||||
self.vm.features.get('seamless-gui', False))
|
||||
|
||||
#type
|
||||
self.type_label.setText(type(self.vm).__name__)
|
||||
|
||||
@ -361,15 +356,6 @@ class VMSettingsWindow(Ui_SettingsDialog, QDialog):
|
||||
except Exception as ex:
|
||||
msg.append(str(ex))
|
||||
|
||||
#seamless_gui
|
||||
try:
|
||||
if self.seamless_gui.isVisible():
|
||||
if self.vm.seamless_gui_mode != self.seamless_gui.isChecked():
|
||||
self.vm.seamless_gui_mode = self.seamless_gui.isChecked()
|
||||
self.anything_changed = True
|
||||
except Exception as ex:
|
||||
msg.append(str(ex))
|
||||
|
||||
#max priv storage
|
||||
priv_size = self.max_priv_storage.value()
|
||||
if self.priv_img_size != priv_size:
|
||||
@ -431,9 +417,6 @@ class VMSettingsWindow(Ui_SettingsDialog, QDialog):
|
||||
and self.vm.features.get('services/meminfo-writer', True))
|
||||
self.max_mem_size.setEnabled(self.include_in_balancing.isChecked())
|
||||
|
||||
#paths
|
||||
self.dir_path.setText('REMOVE ME') # TODO
|
||||
self.config_path.setText('REMOVE ME') # TODO
|
||||
try:
|
||||
self.root_img_path.setText(self.vm.template.root_img)
|
||||
except AttributeError:
|
||||
@ -573,28 +556,6 @@ class VMSettingsWindow(Ui_SettingsDialog, QDialog):
|
||||
except Exception as ex:
|
||||
msg.append(str(ex))
|
||||
|
||||
if hasattr(self.vm, "drive") and self.drive_groupbox.isVisible():
|
||||
try:
|
||||
if not self.drive_groupbox.isChecked():
|
||||
if self.vm.drive != None:
|
||||
self.vm.drive = None
|
||||
self.anything_changed = True
|
||||
else:
|
||||
new_domain = str(self.drive_domain.currentText())
|
||||
if self.drive_domain.currentIndex() == self.drive_domain_idx:
|
||||
# strip "(current)"
|
||||
new_domain = new_domain.split(' ')[0]
|
||||
drive = "%s:%s:%s" % (
|
||||
str(self.drive_type.currentText()),
|
||||
new_domain,
|
||||
str(self.drive_path.text())
|
||||
)
|
||||
if self.vm.drive != drive:
|
||||
self.vm.drive = drive
|
||||
self.anything_changed = True
|
||||
except Exception as ex:
|
||||
msg.append(str(ex))
|
||||
|
||||
return msg
|
||||
|
||||
def drive_path_button_pressed(self):
|
||||
|
Loading…
Reference in New Issue
Block a user