summaryrefslogtreecommitdiff
path: root/src/leap/baseapp/mainwindow.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/leap/baseapp/mainwindow.py')
-rw-r--r--src/leap/baseapp/mainwindow.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/leap/baseapp/mainwindow.py b/src/leap/baseapp/mainwindow.py
index bf42f0e7..2348c27d 100644
--- a/src/leap/baseapp/mainwindow.py
+++ b/src/leap/baseapp/mainwindow.py
@@ -50,6 +50,9 @@ class LeapWindow(QtGui.QMainWindow,
MainWindowMixin.__init__(self)
settings = QtCore.QSettings()
+ # XXX geom_key = "DebugGeometry" if self.debugmode else "Geometry"
+ #geom = settings.value(geom_key)
+
geom = settings.value("Geometry")
if geom:
self.restoreGeometry(geom)
@@ -68,6 +71,10 @@ class LeapWindow(QtGui.QMainWindow,
self.networkError.connect(
lambda exc: self.onNetworkError(exc))
+ if self.debugmode:
+ self.startStopButton.clicked.connect(
+ lambda: self.start_or_stopVPN())
+
# status change.
# TODO unify
self.statusChange.connect(