diff --git a/qutebrowser/browser/commands.py b/qutebrowser/browser/commands.py index d6ab0771a..c3de57387 100644 --- a/qutebrowser/browser/commands.py +++ b/qutebrowser/browser/commands.py @@ -255,7 +255,7 @@ class CommandDispatcher: Args: index: Location where the tab should be pinned/unpinned. - count: The tab index to pin or unpin + count: The tab index to pin or unpin, or None """ tab = self._cntwidget(count) if tab is None: diff --git a/qutebrowser/mainwindow/tabwidget.py b/qutebrowser/mainwindow/tabwidget.py index bfdf53e45..8d99d5596 100644 --- a/qutebrowser/mainwindow/tabwidget.py +++ b/qutebrowser/mainwindow/tabwidget.py @@ -108,7 +108,7 @@ class TabWidget(QTabWidget): fmt = config.get('tabs', 'title-format') - if fields['pin'] is True: + if fields['pinned']: title = '{index}'.format(**fields) else: title = '' if fmt is None else fmt.format(**fields) @@ -125,7 +125,7 @@ class TabWidget(QTabWidget): fields['title'] = page_title fields['title_sep'] = ' - ' if page_title else '' fields['perc_raw'] = tab.progress() - fields['pin'] = tab.data.pinned + fields['pinned'] = tab.data.pinned if tab.load_status() == usertypes.LoadStatus.loading: fields['perc'] = '[{}%] '.format(tab.progress())