1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 18:32:25 +01:00

Fix 'ga' not properly closing parent fold

This commit is contained in:
Nelo Wallus
2016-01-08 19:50:55 +01:00
parent dc136dc30b
commit d7bc7cb3bf

View File

@@ -36,8 +36,15 @@ function fold_collapse_expand_target(tab, collapse, children = false) {
}
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);
}
fold_collapse_expand_target(
gBrowser.tabContainer.selectedItem,
tab,
collapse,
children
);