From edbc4c44699295c81fac1cdc617ae0ea469e4cf2 Mon Sep 17 00:00:00 2001 From: donoban Date: Fri, 11 May 2018 10:27:19 +0200 Subject: [PATCH] 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 --- qubesmanager/qube_manager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qubesmanager/qube_manager.py b/qubesmanager/qube_manager.py index d47ff09..6e75bcb 100644 --- a/qubesmanager/qube_manager.py +++ b/qubesmanager/qube_manager.py @@ -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):