settings: gray out maxmem when qmemman is disabled
'Max memory' setting only makes sense for dynamic memory management.
This commit is contained in:
parent
6e3e475bc2
commit
56d7807fec
@ -427,6 +427,7 @@ class VMSettingsWindow(Ui_SettingsDialog, QDialog):
|
||||
|
||||
self.include_in_balancing.setEnabled(True)
|
||||
self.include_in_balancing.setChecked(self.vm.services['meminfo-writer']==True)
|
||||
self.max_mem_size.setEnabled(self.include_in_balancing.isChecked())
|
||||
if self.vm.type == "HVM":
|
||||
self.include_in_balancing.setChecked(False)
|
||||
self.include_in_balancing.setEnabled(False)
|
||||
@ -611,6 +612,7 @@ class VMSettingsWindow(Ui_SettingsDialog, QDialog):
|
||||
else:
|
||||
self.dmm_warning_adv.hide()
|
||||
self.dmm_warning_dev.hide()
|
||||
self.max_mem_size.setEnabled(self.include_in_balancing.isChecked())
|
||||
|
||||
def devices_selection_changed(self):
|
||||
if self.include_in_balancing.isChecked():
|
||||
|
Loading…
Reference in New Issue
Block a user