Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions qui/tray/domains.py
Original file line number Diff line number Diff line change
Expand Up @@ -997,7 +997,9 @@ def remove_domain_item(self, _submitter, _event, vm, **_kwargs):

def handle_domain_shutdown(self, vm):
try:
if getattr(vm, "klass", None) == "TemplateVM":
if getattr(vm, "klass", None) == "TemplateVM" or getattr(
vm, "template_for_dispvms", False
):
for menu_item in self.menu_items.values():
try:
if not menu_item.vm.is_running():
Expand All @@ -1006,7 +1008,9 @@ def handle_domain_shutdown(self, vm):
continue
except exc.QubesPropertyAccessError:
continue
if getattr(menu_item.vm, "template", None) == vm and any(
template1 = getattr(menu_item.vm, "template", None)
template2 = getattr(template1, "template", None)
if vm in (template1, template2) and any(
vol.is_outdated()
for vol in menu_item.vm.volumes.values()
):
Expand Down