Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/pr/230'
Browse files Browse the repository at this point in the history
* origin/pr/230:
  Removed unnecessary 'needs restarting' icons for DisposableVMs in Qube Manager
  • Loading branch information
marmarek committed Feb 17, 2020
2 parents 2520952 + 9acb22f commit 84ff5ff
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions qubesmanager/table_widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,8 +393,9 @@ def __init__(self, vm, show_text=True, parent=None):

def update_outdated(self):
outdated_state = False
is_disposable = getattr(self.vm, 'auto_cleanup', False)

if self.vm.is_running():
if not is_disposable and self.vm.is_running():
if hasattr(self.vm, 'template') and self.vm.template.is_running():
outdated_state = "to-be-outdated"

Expand All @@ -404,7 +405,8 @@ def update_outdated(self):
outdated_state = "outdated"
break

if self.vm.klass in {'TemplateVM', 'StandaloneVM'} and \
if not is_disposable and \
self.vm.klass in {'TemplateVM', 'StandaloneVM'} and \
self.vm.features.get('updates-available', False):
outdated_state = 'update'

Expand Down

0 comments on commit 84ff5ff

Please sign in to comment.