Add setting to avoid shrinking pinned tabs
This commit is contained in:
parent
c47f0402ab
commit
f242fc5cd7
@ -1358,6 +1358,11 @@ tabs.indicator.padding:
|
|||||||
tabs.width.pinned:
|
tabs.width.pinned:
|
||||||
deleted: true
|
deleted: true
|
||||||
|
|
||||||
|
tabs.pinned.shrink:
|
||||||
|
default: true
|
||||||
|
type: Bool
|
||||||
|
desc: Shrink pinned tabs down to their contents.
|
||||||
|
|
||||||
tabs.wrap:
|
tabs.wrap:
|
||||||
default: true
|
default: true
|
||||||
type: Bool
|
type: Bool
|
||||||
|
@ -565,8 +565,12 @@ class TabBar(QTabBar):
|
|||||||
# want to ensure it's valid in this special case.
|
# want to ensure it's valid in this special case.
|
||||||
return QSize()
|
return QSize()
|
||||||
else:
|
else:
|
||||||
pinned = self._tab_pinned(index)
|
if config.val.tabs.pinned.shrink:
|
||||||
pinned_count, pinned_width = self._pinned_statistics()
|
pinned = self._tab_pinned(index)
|
||||||
|
pinned_count, pinned_width = self._pinned_statistics()
|
||||||
|
else:
|
||||||
|
pinned = False
|
||||||
|
pinned_count, pinned_width = (0, 0)
|
||||||
no_pinned_count = self.count() - pinned_count
|
no_pinned_count = self.count() - pinned_count
|
||||||
no_pinned_width = self.width() - pinned_width
|
no_pinned_width = self.width() - pinned_width
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user