fixes for updater

This commit is contained in:
ingvar1995 2016-10-29 21:30:39 +03:00
parent 52a5d248c7
commit e598d027eb
2 changed files with 7 additions and 6 deletions

View file

@ -259,6 +259,8 @@ class Toxygen:
self.tray.show()
self.tray.activated.connect(tray_activated)
self.ms.show()
updating = False
if settings['update'] and updater.updater_available() and updater.connection_available(): # auto update
version = updater.check_for_updates()
@ -268,7 +270,7 @@ class Toxygen:
updating = True
else:
reply = QtGui.QMessageBox.question(None,
'',
'Toxygen',
QtGui.QApplication.translate("login",
'Update for Toxygen was found. Download and install it?',
None,
@ -286,8 +288,6 @@ class Toxygen:
del self.tox
return
self.ms.show()
plugin_helper = PluginLoader(self.tox, settings) # plugin support
plugin_helper.load()