mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 20:32:25 +01:00
Fix applying to parent fold
This commit is contained in:
@@ -39,8 +39,8 @@ function fold_collapse_expand(collapse, children = false) {
|
|||||||
let tab = gBrowser.tabContainer.selectedItem;
|
let tab = gBrowser.tabContainer.selectedItem;
|
||||||
|
|
||||||
if (!TreeStyleTabService.hasChildTabs(tab)) {
|
if (!TreeStyleTabService.hasChildTabs(tab)) {
|
||||||
let tab = TreeStyleTabService.getParentTab(tab);
|
tab = TreeStyleTabService.getParentTab(tab);
|
||||||
collapse = TreeStyleTabService.isSubtreeCollapsed(tab);
|
gBrowser.tabContainer.selectedIndex = gBrowser.tabContainer.getIndexOfItem(tab);
|
||||||
}
|
}
|
||||||
|
|
||||||
fold_collapse_expand_target(
|
fold_collapse_expand_target(
|
||||||
|
|||||||
Reference in New Issue
Block a user