1
0
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:
Nelo Wallus
2016-01-15 14:16:41 +01:00
parent 627c5ae9a1
commit dfdc45ec54

View File

@@ -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(