diff options
author | elijah <elijah@riseup.net> | 2016-05-11 17:09:54 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2016-05-11 17:27:13 -0700 |
commit | 61970d6395afcaa5439d866fbfb1ab2ad471141a (patch) | |
tree | 04596886bbda2abdf64f7102fea4f3d0b09ed34b /src/leap/bitmask/gui/preferenceswindow.py | |
parent | cd95c8d2e285538e282dbf2b5e848b4154c3606c (diff) |
[feat] move pix UA launcher from menu to mail status widget.
Diffstat (limited to 'src/leap/bitmask/gui/preferenceswindow.py')
-rw-r--r-- | src/leap/bitmask/gui/preferenceswindow.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/leap/bitmask/gui/preferenceswindow.py b/src/leap/bitmask/gui/preferenceswindow.py index 82dc8d77..30091312 100644 --- a/src/leap/bitmask/gui/preferenceswindow.py +++ b/src/leap/bitmask/gui/preferenceswindow.py @@ -38,6 +38,12 @@ class PreferencesWindow(QtGui.QDialog): _current_window = None # currently visible preferences window + _panels = { + "account": 0, + "vpn": 1, + "email": 2 + } + def __init__(self, parent, app): """ :param parent: parent object of the PreferencesWindow. @@ -240,3 +246,12 @@ class PreferencesWindow(QtGui.QDialog): Triggered by get srp_status_logged_in, srp_status_not_logged_in """ self._set_account(self.app.current_account()) + + def set_page(self, page): + """ + Jump to a particular page + """ + index = PreferencesWindow._panels[page] + self.ui.nav_widget.setCurrentRow(index) + self.ui.pages_widget.setCurrentIndex(index) + |