summaryrefslogtreecommitdiff
path: root/src/leap/gui/mainwindow.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/leap/gui/mainwindow.py')
-rw-r--r--src/leap/gui/mainwindow.py24
1 files changed, 11 insertions, 13 deletions
diff --git a/src/leap/gui/mainwindow.py b/src/leap/gui/mainwindow.py
index 71dff1c5..0d59e24b 100644
--- a/src/leap/gui/mainwindow.py
+++ b/src/leap/gui/mainwindow.py
@@ -42,7 +42,6 @@ from leap.services.eip.vpnlaunchers import (VPNLauncherException,
EIPNoPolkitAuthAgentAvailable)
from leap.util import __version__ as VERSION
from leap.util.checkerthread import CheckerThread
-from leap.common.events import server
from leap.common.events import (
register,
events_pb2 as proto,
@@ -78,8 +77,6 @@ class MainWindow(QtGui.QMainWindow):
"""
QtGui.QMainWindow.__init__(self)
- server.ensure_server(port=8090)
-
register(signal=proto.UPDATER_NEW_UPDATES,
callback=self._new_updates_available)
self._updates_content = ""
@@ -269,15 +266,17 @@ class MainWindow(QtGui.QMainWindow):
def _updates_details(self):
"""
+ SLOT
+ TRIGGER: self.ui.btnMore.clicked
+
Parses and displays the updates details
"""
- msg = ""
- if len(self._updates_content) == 0:
- # We assume that if there is nothing in the contents, then
- # the LEAPClient bundle is what needs updating.
- msg = self.tr("The LEAPClient app is ready to update, please"
- " restart the application.")
- else:
+ msg = self.tr("The LEAPClient app is ready to update, please"
+ " restart the application.")
+
+ # We assume that if there is nothing in the contents, then
+ # the LEAPClient bundle is what needs updating.
+ if len(self._updates_content) > 0:
files = self._updates_content.split(", ")
files_str = ""
for f in files:
@@ -285,9 +284,8 @@ class MainWindow(QtGui.QMainWindow):
final_name = final_name.replace(".thp", "")
files_str += final_name
files_str += "\n"
- msg = self.tr("The LEAPClient app is ready to update, please"
- " restart the application so the following "
- "components get updated:\n%s") % (files_str,)
+ msg += self.tr(" The following components will be updated:\n%s") \
+ % (files_str,)
QtGui.QMessageBox.information(self,
self.tr("Updates available"),