Fix misspelling on Updates Timer() and better timeout

This func is pretty cheap, less than 0.1ms adding two calls to print(time)
so I think 30s is a reasonable timeout and better for user experience
This commit is contained in:
donoban 2018-05-11 10:27:19 +02:00
parent c43a47019e
commit edbc4c4469
No known key found for this signature in database
GPG Key ID: 141310D8E3ED08A5

View File

@ -390,11 +390,11 @@ class VmManagerWindow(ui_qubemanager.Ui_VmManagerWindow, QtGui.QMainWindow):
# Check Updates Timer
timer = QtCore.QTimer(self)
timer.timeout.connect(self.CheckUpdates)
timer.start(1000 * 60 * 5) # 5mins
timer.start(1000 * 30) # 30s
def CheckUpdates(self):
for vm in self.qubes_app.domains:
if vm.klass == 'TempateVM':
if vm.klass == 'TemplateVM':
self.vms_in_table[vm.qid].update()
def OnDomainAdded(self, manager, domain):