Last pinned to pinned_count

This commit is contained in:
thuck 2017-03-19 14:05:21 +01:00
parent 2eb07fc9cc
commit 02bf0401ab

View File

@ -226,9 +226,6 @@ class CommandDispatcher:
selection_override = self._get_selection_override(prev, next_,
opposite)
if tab.data.pinned:
tabbar.pinned -= 1
if selection_override is None:
self._tabbed_browser.close_tab(tab)
else:
@ -237,6 +234,9 @@ class CommandDispatcher:
self._tabbed_browser.close_tab(tab)
tabbar.setSelectionBehaviorOnRemove(old_selection_behavior)
if tab.data.pinned:
tabbar.pinned_count -= 1
@cmdutils.register(instance='command-dispatcher', scope='window')
@cmdutils.argument('count', count=True)
def tab_close(self, prev=False, next_=False, opposite=False,