From 5c17ad8dcc54ab49d55d11ed1356aee1bb7504ee Mon Sep 17 00:00:00 2001 From: piro Date: Thu, 28 Feb 2008 00:07:51 +0000 Subject: [PATCH] =?UTF-8?q?=E3=83=84=E3=83=AA=E3=83=BC=E3=81=AE=E8=87=AA?= =?UTF-8?q?=E5=8B=95=E7=9A=84=E3=81=AA=E6=A7=8B=E7=AF=89=E3=82=92=E6=8A=91?= =?UTF-8?q?=E6=AD=A2=E3=81=99=E3=82=8B=E8=A8=AD=E5=AE=9A=E3=82=92=E8=BF=BD?= =?UTF-8?q?=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@1943 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- content/treestyletab/treestyletab.js | 4 ++++ defaults/preferences/treestyletab.js | 1 + 2 files changed, 5 insertions(+) diff --git a/content/treestyletab/treestyletab.js b/content/treestyletab/treestyletab.js index fad32965..ff81bbe9 100644 --- a/content/treestyletab/treestyletab.js +++ b/content/treestyletab/treestyletab.js @@ -140,6 +140,8 @@ var TreeStyleTabService = { readyToOpenChildTab : function(aFrameOrTabBrowser, aMultiple, aInsertBefore) { + if (!this.getTreePref('autoAttachNewTabsAsChildren')) return; + var frame = this.getFrameFromTabBrowserElements(aFrameOrTabBrowser); if (!frame) return; @@ -153,6 +155,8 @@ var TreeStyleTabService = { readyToOpenNewTabGroup : function(aFrameOrTabBrowser) { + if (!this.getTreePref('autoAttachNewTabsAsChildren')) return; + var frame = this.getFrameFromTabBrowserElements(aFrameOrTabBrowser); if (!frame) return; diff --git a/defaults/preferences/treestyletab.js b/defaults/preferences/treestyletab.js index a205faea..86251dc9 100644 --- a/defaults/preferences/treestyletab.js +++ b/defaults/preferences/treestyletab.js @@ -48,6 +48,7 @@ pref("extensions.treestyletab.autoCollapseExpandSubTreeOnSelect", true); pref("extensions.treestyletab.collapseExpandSubTree.dblclick", false); pref("extensions.treestyletab.autoExpandSubTreeOnAppendChild", true); pref("extensions.treestyletab.attachChildrenToGrandParentOnRemoveTab", true); +pref("extensions.treestyletab.autoAttachNewTabsAsChildren", true); // 0 = default, 1 = only visible tabs pref("extensions.treestyletab.focusMode", 1);