旧来の動作に戻す隠し設定
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@3455 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
451667b18c
commit
e6b25d0555
@ -92,6 +92,7 @@ var TreeStyleTabService = {
|
||||
kINSERT_LAST : 1,
|
||||
|
||||
baseLebelMargin : 12,
|
||||
shouldDetectClickOnIndentSpaces : true,
|
||||
|
||||
NSResolver : {
|
||||
lookupNamespaceURI : function(aPrefix)
|
||||
@ -926,6 +927,7 @@ var TreeStyleTabService = {
|
||||
|
||||
this.observe(null, 'nsPref:changed', 'extensions.treestyletab.levelMargin');
|
||||
this.observe(null, 'nsPref:changed', 'extensions.treestyletab.tabbar.autoHide.mode');
|
||||
this.observe(null, 'nsPref:changed', 'extensions.treestyletab.clickOnIndentSpaces.enabled');
|
||||
this.observe(null, 'nsPref:changed', 'browser.link.open_newwindow.restriction.override');
|
||||
this.observe(null, 'nsPref:changed', 'browser.tabs.loadFolderAndReplace.override');
|
||||
},
|
||||
@ -2027,6 +2029,10 @@ catch(e) {
|
||||
this.setPref(target, this.getPref(aPrefName));
|
||||
break;
|
||||
|
||||
case 'extensions.treestyletab.clickOnIndentSpaces.enabled':
|
||||
this.shouldDetectClickOnIndentSpaces = this.getPref(aPrefName);
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
@ -1693,6 +1693,8 @@ TreeStyleTabBrowser.prototype = {
|
||||
},
|
||||
getTabFromTabbarEvent : function(aEvent)
|
||||
{
|
||||
if (!this.shouldDetectClickOnIndentSpaces) return null;
|
||||
|
||||
var tab = null;
|
||||
var clickedPoint = aEvent[this.positionProp];
|
||||
Array.slice(this.mTabBrowser.mTabContainer.childNodes).some(function(aTab) {
|
||||
|
@ -40,6 +40,7 @@ pref("extensions.treestyletab.levelMargin", 12);
|
||||
// 0 = first child, 1 = last child
|
||||
pref("extensions.treestyletab.insertNewChildAt", 1);
|
||||
pref("extensions.treestyletab.twisty.style", "auto"); // none, retro, modern-black, modern-white, auto
|
||||
pref("extensions.treestyletab.clickOnIndentSpaces.enabled", true);
|
||||
|
||||
pref("extensions.treestyletab.show.openSelectionLinks", true);
|
||||
pref("extensions.treestyletab.show.context-item-removeTabSubTree", true);
|
||||
|
Loading…
Reference in New Issue
Block a user