perm-hide -> always-hide
This commit is contained in:
parent
5100f6fc8f
commit
335f72a93f
@ -360,9 +360,9 @@ DATA = collections.OrderedDict([
|
||||
SettingValue(typ.Bool(), 'false'),
|
||||
"Hide the tabbar if only one tab is open."),
|
||||
|
||||
('perm-hide',
|
||||
('always-hide',
|
||||
SettingValue(typ.Bool(), 'false'),
|
||||
"Hide permanently."),
|
||||
"Always hide the tabbar."),
|
||||
|
||||
('wrap',
|
||||
SettingValue(typ.Bool(), 'true'),
|
||||
|
@ -106,8 +106,8 @@ class TabBar(QTabBar):
|
||||
def autohide(self):
|
||||
"""Auto-hide the tabbar if needed."""
|
||||
auto_hide = config.get('tabs', 'auto-hide')
|
||||
perm_hide = config.get('tabs', 'perm-hide')
|
||||
if perm_hide or auto_hide and self.count() == 1:
|
||||
always_hide = config.get('tabs', 'always-hide')
|
||||
if always_hide or auto_hide and self.count() == 1:
|
||||
self.hide()
|
||||
else:
|
||||
self.show()
|
||||
|
Loading…
Reference in New Issue
Block a user