mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 22:42:26 +01:00
Fix 'ga' not properly closing parent fold
This commit is contained in:
@@ -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
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user