Permalink
Browse files

Implement changing of tab title when privacy mode is enabled

  • Loading branch information...
craftyguy committed Jun 5, 2017
1 parent a45de9c commit 49b8737f7979fc878ba25aed94cc3e57f481ae3a
Showing with 4 additions and 2 deletions.
  1. +3 −2 qutebrowser/config/configdata.py
  2. +1 −0 qutebrowser/mainwindow/tabwidget.py
@@ -377,7 +377,7 @@ def data(readonly=False):
SettingValue(typ.FormatString(fields=['perc', 'perc_raw', 'title',
'title_sep', 'id',
'scroll_pos', 'host',
'backend']),
'backend', 'private']),
'{perc}{title}{title_sep}qutebrowser'),
"The format to use for the window title. The following "
"placeholders are defined:\n\n"
@@ -389,7 +389,8 @@ def data(readonly=False):
"* `{id}`: The internal window ID of this window.\n"
"* `{scroll_pos}`: The page scroll position.\n"
"* `{host}`: The host of the current web page.\n"
"* `{backend}`: Either 'webkit' or 'webengine'"),
"* `{backend}`: Either 'webkit' or 'webengine'"
"* `{private}` : Indicates when private mode is enabled.\n"),
('modal-js-dialog',
SettingValue(typ.Bool(), 'false'),
@@ -164,6 +164,7 @@ def get_tab_fields(self, idx):
fields['title_sep'] = ' - ' if page_title else ''
fields['perc_raw'] = tab.progress()
fields['backend'] = objects.backend.name
fields['private'] = ' [Private Mode] ' if tab.private else ''
if tab.load_status() == usertypes.LoadStatus.loading:
fields['perc'] = '[{}%] '.format(tab.progress())

0 comments on commit 49b8737

Please sign in to comment.