Allow to disable new tab position control
This commit is contained in:
parent
8c74d7ac62
commit
864698e720
@ -536,6 +536,12 @@ pref("extensions.treestyletab.autoAttach.goButton", 1);
|
|||||||
*/
|
*/
|
||||||
pref("extensions.treestyletab.autoAttach.fromCurrent", 1);
|
pref("extensions.treestyletab.autoAttach.fromCurrent", 1);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* If true, TST controls position of a newly opened tab by self.
|
||||||
|
* You should turn this false if you want to use any other addon which controls new tab positions.
|
||||||
|
*/
|
||||||
|
pref("extensions.treestyletab.controlNewTabPosition", true);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Focus targets for Ctrl-Tab/Ctrl-Shift-Tab.
|
* Focus targets for Ctrl-Tab/Ctrl-Shift-Tab.
|
||||||
* 0 = Focus to both visible and collapsed tabs. (If a collapsed tab is
|
* 0 = Focus to both visible and collapsed tabs. (If a collapsed tab is
|
||||||
|
@ -3676,7 +3676,9 @@ TreeStyleTabBrowser.prototype = inherit(TreeStyleTabWindow.prototype, {
|
|||||||
var b = this.mTabBrowser;
|
var b = this.mTabBrowser;
|
||||||
|
|
||||||
var prevPosition = aEvent.detail;
|
var prevPosition = aEvent.detail;
|
||||||
if (tab.__treestyletab__isOpening && !this.isTabInternallyMoving(tab)) {
|
if (tab.__treestyletab__isOpening &&
|
||||||
|
!this.isTabInternallyMoving(tab) &&
|
||||||
|
utils.getTreePref('controlNewTabPosition')) {
|
||||||
log('onTabMove for new child tab: move back '+tab._tPos+' => '+prevPosition);
|
log('onTabMove for new child tab: move back '+tab._tPos+' => '+prevPosition);
|
||||||
tab.__treestyletab__internallyTabMovingCount++;
|
tab.__treestyletab__internallyTabMovingCount++;
|
||||||
b.moveTabTo(tab, prevPosition);
|
b.moveTabTo(tab, prevPosition);
|
||||||
|
Loading…
Reference in New Issue
Block a user