Fix setting include_in_balancing checkbox
Generally vm.features values are strings, need to cast them to boot to use in such context. Additionally fix typo in feature name ('services' -> 'service'). Fixes QubesOS/qubes-issues#2947 Fixes QubesOS/qubes-issues#3104
This commit is contained in:
parent
9ebd602407
commit
43576d786c
@ -452,7 +452,7 @@ class VMSettingsWindow(Ui_SettingsDialog, QDialog):
|
||||
|
||||
self.include_in_balancing.setEnabled(True)
|
||||
self.include_in_balancing.setChecked(
|
||||
self.vm.features.get('services.meminfo-writer', True))
|
||||
bool(self.vm.features.get('service.meminfo-writer', True)))
|
||||
self.max_mem_size.setEnabled(self.include_in_balancing.isChecked())
|
||||
|
||||
#in case VM is HVM
|
||||
|
Loading…
Reference in New Issue
Block a user