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:
parent
ac92bb5fdf
commit
47e83f2039
@ -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):
|
||||
|
@ -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'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user