summaryrefslogtreecommitdiff
path: root/src/leap/baseapp/eip.py
diff options
context:
space:
mode:
authorkali <kali@leap.se>2012-09-04 06:01:50 +0900
committerkali <kali@leap.se>2012-09-04 06:01:50 +0900
commitb0b2b342b698bbe5851e9312cd830938f8d564a5 (patch)
tree041e6bdd55e6c94765d9c8830256bd6a5c452ce3 /src/leap/baseapp/eip.py
parent3fbc512a49923ac73d2413a083e0bb1f7e163866 (diff)
further cleaning of main window by moving init functions
to their base classes. plus a bit of juggling with order.
Diffstat (limited to 'src/leap/baseapp/eip.py')
-rw-r--r--src/leap/baseapp/eip.py13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/leap/baseapp/eip.py b/src/leap/baseapp/eip.py
index e8b9fe53..a67fd916 100644
--- a/src/leap/baseapp/eip.py
+++ b/src/leap/baseapp/eip.py
@@ -19,6 +19,8 @@ class EIPConductorApp(object):
opts = kwargs.pop('opts')
config_file = getattr(opts, 'config_file', None)
+ self.eip_service_started = False
+
self.conductor = EIPConnection(
watcher_cb=self.newLogLine.emit,
config_file=config_file,
@@ -28,8 +30,15 @@ class EIPConductorApp(object):
# XXX remove skip download when sample service is ready
self.conductor.run_checks(skip_download=True)
self.error_check()
- if self.conductor.autostart:
- self.start_or_stopVPN()
+
+ # XXX should receive "ready" signal
+ #if self.conductor.autostart:
+ #self.start_or_stopVPN()
+
+ # move to eipconductor init?
+ if self.debugmode:
+ self.startStopButton.clicked.connect(
+ lambda: self.start_or_stopVPN())
def error_check(self):
####### error checking ################