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:
		
							parent
							
								
									c43a47019e
								
							
						
					
					
						commit
						edbc4c4469
					
				| @ -390,11 +390,11 @@ class VmManagerWindow(ui_qubemanager.Ui_VmManagerWindow, QtGui.QMainWindow): | |||||||
|         # Check Updates Timer |         # Check Updates Timer | ||||||
|         timer = QtCore.QTimer(self) |         timer = QtCore.QTimer(self) | ||||||
|         timer.timeout.connect(self.CheckUpdates) |         timer.timeout.connect(self.CheckUpdates) | ||||||
|         timer.start(1000 * 60 * 5) # 5mins |         timer.start(1000 * 30) # 30s | ||||||
| 
 | 
 | ||||||
|     def CheckUpdates(self): |     def CheckUpdates(self): | ||||||
|         for vm in self.qubes_app.domains: |         for vm in self.qubes_app.domains: | ||||||
|             if vm.klass == 'TempateVM': |             if vm.klass == 'TemplateVM': | ||||||
|                 self.vms_in_table[vm.qid].update() |                 self.vms_in_table[vm.qid].update() | ||||||
| 
 | 
 | ||||||
|     def OnDomainAdded(self, manager, domain): |     def OnDomainAdded(self, manager, domain): | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 donoban
						donoban