From 2174acd89500ebad2c9b3df034d276e0e857b6f8 Mon Sep 17 00:00:00 2001 From: Kali Kaneko Date: Thu, 29 May 2014 12:44:56 -0500 Subject: change eip status during restarts --- src/leap/bitmask/gui/eip_status.py | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/leap/bitmask/gui/eip_status.py b/src/leap/bitmask/gui/eip_status.py index 9da231f2..ca209d6a 100644 --- a/src/leap/bitmask/gui/eip_status.py +++ b/src/leap/bitmask/gui/eip_status.py @@ -373,11 +373,19 @@ class EIPStatusWidget(QtGui.QWidget): self.ui.eip_bandwidth.hide() # XXX FIXME ! ----------------------- this needs to - # accomodate the messages about firewall up or not. + # accomodate the messages about firewall status. Right now + # we're assuming it works correctly, but we should test fw + # status positively. # Or better call it from the conductor... - self.ui.lblEIPMessage.setText( - self.tr("Traffic is being routed in the clear")) + clear_traffic = self.tr("Traffic is being routed in the clear") + unreachable_net = self.tr("Network is unreachable") + + if restart: + msg = unreachable_net + else: + msg = clear_traffic + self.ui.lblEIPMessage.setText(msg) self.ui.lblEIPStatus.show() @QtCore.Slot(dict) -- cgit v1.2.3