Skip to content

Commit

Permalink
When Template changes status, all AppVMs should update too
Browse files Browse the repository at this point in the history
  • Loading branch information
donob4n committed Dec 31, 2019
1 parent b970a70 commit 9f3f61a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions qubesmanager/qube_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -781,9 +781,12 @@ def on_domain_removed(self, _submitter, _event, **kwargs):
self.qubes_model.layoutChanged.emit()
return

def on_domain_status_changed(self, vm, _event, **_kwargs):
def on_domain_status_changed(self, vm, event, **_kwargs):
try:
self.qubes_model.info_by_id[vm.qid].update()
self.qubes_model.info_by_id[vm.qid].update(event=event)
if vm.klass in {'TemplateVM'}:
for appvm in vm.appvms:
self.qubes_model.info_by_id[vm.qid].update("outdated")
self.qubes_model.layoutChanged.emit()
self.table_selection_changed()
except exc.QubesPropertyAccessError:
Expand Down

0 comments on commit 9f3f61a

Please sign in to comment.