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
Esse commit está contido em:
Marta Marczykowska-Górecka 2019-09-19 01:27:34 +02:00
commit 9aeacce9c5
Nenhuma chave conhecida encontrada para esta assinatura no banco de dados
ID da chave GPG: 9A752C30B26FD04B

Ver arquivo

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