perm-hide -> always-hide

This commit is contained in:
ZDarian 2015-01-21 07:27:08 -07:00
parent 5100f6fc8f
commit 335f72a93f
2 changed files with 4 additions and 4 deletions

View File

@ -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'),

View File

@ -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()