Răsfoiți Sursa

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

donoban 6 ani în urmă
părinte
comite
47e83f2039
2 a modificat fișierele cu 3 adăugiri și 2 ștergeri
  1. 2 1
      qubesmanager/qube_manager.py
  2. 1 1
      qubesmanager/table_widgets.py

+ 2 - 1
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):

+ 1 - 1
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'