Commit 2660f43
committed
Fix: Re-parent pulled-up directory children to ensure proper checkbox refresh
When the tree has multiple top-level directories, a temporary DirectoryTreeNode
is created to build the tree, then its children are pulled up to the parent.
However, the children's parent pointers still referenced the phantom root,
causing processCheckboxUpdates to refresh an invisible node, so checkbox state
never updated visually.
Re-parent all pulled-up children to the actual container node (FilesCategoryNode,
PullRequestNode, or CommitNode) so ancestor walks target visible tree nodes.1 parent 6596ede commit 2660f43
File tree
3 files changed
+3
-0
lines changed- src/view/treeNodes
3 files changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| 114 | + | |
114 | 115 | | |
115 | 116 | | |
116 | 117 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| 96 | + | |
96 | 97 | | |
97 | 98 | | |
98 | 99 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| 108 | + | |
108 | 109 | | |
109 | 110 | | |
110 | 111 | | |
| |||
0 commit comments