Add customizability for newly opened temporary groups (#537)
This commit is contained in:
parent
2c7d534b56
commit
23b1a043ef
@ -418,7 +418,7 @@ var TreeStyleTabBookmarksService = {
|
|||||||
treeStructure = sv.getTreeStructureFromItems(aIDs, 0);
|
treeStructure = sv.getTreeStructureFromItems(aIDs, 0);
|
||||||
aURLs.unshift(sv.getGroupTabURI({
|
aURLs.unshift(sv.getGroupTabURI({
|
||||||
title: aFolderTitle,
|
title: aFolderTitle,
|
||||||
temporary: true
|
temporary: TreeStyleTabUtils.getTreePref('openGroupBookmark.temporaryGroup')
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -395,6 +395,7 @@ pref("extensions.treestyletab.dropLinksOnTab.behavior", 0);
|
|||||||
* 1 | 512 = Open as a new tree, as a flat group.
|
* 1 | 512 = Open as a new tree, as a flat group.
|
||||||
*/
|
*/
|
||||||
pref("extensions.treestyletab.openGroupBookmark.behavior", 2304); /* 0 | 256 | 2048 */
|
pref("extensions.treestyletab.openGroupBookmark.behavior", 2304); /* 0 | 256 | 2048 */
|
||||||
|
pref("extensions.treestyletab.openGroupBookmark.temporaryGroup", true);
|
||||||
/**
|
/**
|
||||||
* How to treat tabs dropped to the Bookmarks menu or Bookmarks toolbar.
|
* How to treat tabs dropped to the Bookmarks menu or Bookmarks toolbar.
|
||||||
* 0 = Always ask how bookmark the tree.
|
* 0 = Always ask how bookmark the tree.
|
||||||
@ -617,6 +618,7 @@ pref("extensions.multipletab.show.multipletab-selection-item-createSubtree", tru
|
|||||||
* the first selected tab becomes the parent.
|
* the first selected tab becomes the parent.
|
||||||
*/
|
*/
|
||||||
pref("extensions.treestyletab.createSubtree.underParent", true);
|
pref("extensions.treestyletab.createSubtree.underParent", true);
|
||||||
|
pref("extensions.treestyletab.createSubtree.underParent.temporaryGroup", true);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Size of pinned tabs in the vertical tab bar.
|
* Size of pinned tabs in the vertical tab bar.
|
||||||
|
@ -1350,7 +1350,9 @@ TreeStyleTabWindow.prototype = {
|
|||||||
);
|
);
|
||||||
|
|
||||||
var root = utils.getTreePref('createSubtree.underParent') ?
|
var root = utils.getTreePref('createSubtree.underParent') ?
|
||||||
b.addTab(this.getGroupTabURI({ temporary: true })) :
|
b.addTab(this.getGroupTabURI({
|
||||||
|
temporary: utils.getTreePref('createSubtree.underParent.temporaryGroup')
|
||||||
|
})) :
|
||||||
aTabs.shift() ;
|
aTabs.shift() ;
|
||||||
var self = this;
|
var self = this;
|
||||||
this.Deferred.next(function(self) {
|
this.Deferred.next(function(self) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user