mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 20:42:27 +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;
|
||||
|
||||
if (!TreeStyleTabService.hasChildTabs(tab)) {
|
||||
let tab = TreeStyleTabService.getParentTab(tab);
|
||||
collapse = TreeStyleTabService.isSubtreeCollapsed(tab);
|
||||
tab = TreeStyleTabService.getParentTab(tab);
|
||||
gBrowser.tabContainer.selectedIndex = gBrowser.tabContainer.getIndexOfItem(tab);
|
||||
}
|
||||
|
||||
fold_collapse_expand_target(
|
||||
|
||||
Reference in New Issue
Block a user