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