diff options
author | Tomás Touceda <chiiph@leap.se> | 2013-07-10 17:11:16 -0300 |
---|---|---|
committer | Tomás Touceda <chiiph@leap.se> | 2013-07-10 17:11:16 -0300 |
commit | 4b7c319d3234ec40e4c2ca63204c0efbc0e55f37 (patch) | |
tree | a91bbac79841f057fdd41a9a5c48b60507aaab0e /src/leap/gui/statuspanel.py | |
parent | 02d5af749b0eb2843302668fa0138afc6dc927da (diff) | |
parent | cc1d8f31071bb99690a355c244b945aa753918a9 (diff) |
Merge remote-tracking branch 'ivan/bug/3125_systray-turn-on-problem' into develop
Diffstat (limited to 'src/leap/gui/statuspanel.py')
-rw-r--r-- | src/leap/gui/statuspanel.py | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/leap/gui/statuspanel.py b/src/leap/gui/statuspanel.py index 3e5a5093..dcb6e802 100644 --- a/src/leap/gui/statuspanel.py +++ b/src/leap/gui/statuspanel.py @@ -105,6 +105,15 @@ class StatusPanelWidget(QtGui.QWidget): leap_assert_type(systray, QtGui.QSystemTrayIcon) self._systray = systray + def set_action_eip_startstop(self, action_eip_startstop): + """ + Sets the action_eip_startstop to use. + + :param action_eip_startstop: action_eip_status to be used + :type action_eip_startstop: QtGui.QAction + """ + self._action_eip_startstop = action_eip_startstop + def set_action_eip_status(self, action_eip_status): """ Sets the action_eip_status to use. @@ -156,13 +165,15 @@ class StatusPanelWidget(QtGui.QWidget): def set_startstop_enabled(self, value): """ - Enable or disable btnEipStartStop based on value + Enable or disable btnEipStartStop and _action_eip_startstop + based on value :param value: True for enabled, False otherwise :type value: bool """ leap_assert_type(value, bool) self.ui.btnEipStartStop.setEnabled(value) + self._action_eip_startstop.setEnabled(value) def eip_pre_up(self): """ |