don't show toggler for mousemove if it is not handled by the user preference
This commit is contained in:
parent
977a015199
commit
0e6817b375
@ -575,6 +575,7 @@ TreeStyleTabBrowser.prototype = {
|
||||
this.onPrefChange('extensions.treestyletab.showBorderForFirstTab');
|
||||
this.onPrefChange('extensions.treestyletab.tabbar.invertTabContents');
|
||||
this.onPrefChange('extensions.treestyletab.tabbar.invertClosebox');
|
||||
this.onPrefChange('extensions.treestyletab.tabbar.autoShow.mousemove');
|
||||
this.onPrefChange('extensions.treestyletab.animation.enabled');
|
||||
|
||||
var tabContextMenu = b.tabContextMenu ||
|
||||
@ -1775,6 +1776,17 @@ TreeStyleTabBrowser.prototype = {
|
||||
this.checkTabsIndentOverflow();
|
||||
return;
|
||||
|
||||
case 'extensions.treestyletab.tabbar.autoShow.mousemove':
|
||||
let (toggler = document.getAnonymousElementByAttribute(b, 'class', this.kTABBAR_TOGGLER)) {
|
||||
if (toggler) {
|
||||
if (value)
|
||||
toggler.removeAttribute('hidden');
|
||||
else
|
||||
toggler.setAttribute('hidden', true);
|
||||
}
|
||||
}
|
||||
return;
|
||||
|
||||
case 'extensions.treestyletab.maxTreeLevel.phisical':
|
||||
if (this.maxTreeLevelPhisical = value)
|
||||
this.promoteTooDeepLevelTabs();
|
||||
|
Loading…
Reference in New Issue
Block a user