Qube Manager now reacts to changing some global properties
Properties checked are: default_netvm and default_dispvm. Qube Manager will now properly update displayed values. fixes QubesOS/qubes-issues#5328
This commit is contained in:
parent
1ced452976
commit
9aeacce9c5
@ -617,7 +617,14 @@ class VmManagerWindow(ui_qubemanager.Ui_VmManagerWindow, QtWidgets.QMainWindow):
|
||||
|
||||
def on_domain_changed(self, vm, event, **_kwargs):
|
||||
if not vm: # change of global properties occured
|
||||
if event.endswith(':default_netvm'):
|
||||
for vm_row in self.vms_in_table.values():
|
||||
vm_row.update(event='property-set:netvm')
|
||||
if event.endswith(':default_dispvm'):
|
||||
for vm_row in self.vms_in_table.values():
|
||||
vm_row.update(event='property-set:default_dispvm')
|
||||
return
|
||||
|
||||
try:
|
||||
self.vms_in_table[vm.qid].update(event=event)
|
||||
except exc.QubesPropertyAccessError:
|
||||
|
Loading…
Reference in New Issue
Block a user