From 47e83f2039ba0bb83695a405d58da5b3fa906625 Mon Sep 17 00:00:00 2001 From: donoban Date: Thu, 31 May 2018 00:11:30 +0200 Subject: [PATCH] Added standalone VM's to check_updates() Also added an initial call when creating the timer, most users will look for updates inmediately after start the manager --- qubesmanager/qube_manager.py | 3 ++- qubesmanager/table_widgets.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/qubesmanager/qube_manager.py b/qubesmanager/qube_manager.py index 642d567..92f9cf6 100644 --- a/qubesmanager/qube_manager.py +++ b/qubesmanager/qube_manager.py @@ -392,10 +392,11 @@ class VmManagerWindow(ui_qubemanager.Ui_VmManagerWindow, QtGui.QMainWindow): timer = QtCore.QTimer(self) timer.timeout.connect(self.check_updates) timer.start(1000 * 30) # 30s + self.check_updates() def check_updates(self): for vm in self.qubes_app.domains: - if vm.klass == 'TemplateVM': + if vm.klass in {'TemplateVM', 'StandaloneVM'}: self.vms_in_table[vm.qid].update() def on_domain_added(self, _, domain): diff --git a/qubesmanager/table_widgets.py b/qubesmanager/table_widgets.py index a22f909..9bda3b1 100644 --- a/qubesmanager/table_widgets.py +++ b/qubesmanager/table_widgets.py @@ -417,7 +417,7 @@ class VmUpdateInfoWidget(QtGui.QWidget): outdated_state = "outdated" break - elif self.vm.klass == 'TemplateVM' and \ + elif self.vm.klass in {'TemplateVM', 'StandaloneVM'} and \ self.vm.features.get('updates-available', False): outdated_state = 'update'