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:
Marta Marczykowska-Górecka 2019-09-19 01:27:34 +02:00
parent 1ced452976
commit 9aeacce9c5
No known key found for this signature in database
GPG Key ID: 9A752C30B26FD04B

View File

@ -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: