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
This commit is contained in:
donoban 2018-05-31 00:11:30 +02:00
parent ac92bb5fdf
commit 47e83f2039
No known key found for this signature in database
GPG Key ID: 141310D8E3ED08A5
2 changed files with 3 additions and 2 deletions

View File

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

View File

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