Repository navigation
Commit 6e92c1a
committed
Fix sidebar-refresh to respond to manual refreshes and external branch changes
The sidebar's checked-out branch checkmark does not update after a
branch change made outside GitX (e.g. `git switch` in a terminal), or
even after clicking GitX's own manual Refresh button, even though the
commit-list header already updates correctly in both cases.
reloadRefs already invalidates the cached HEAD ref and fires KVO on
refs on every refresh cycle, automatic or manual, but
PBGitSidebarController never observed that property.
Observe refs in PBGitSidebarController and reload the outline view,
preserving the current selection, so the checkmark badge is
recomputed against the current HEAD whenever refs change, regardless
of what triggered the refresh.1 parent 8951252 commit 6e92c1a
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
116 | 126 | | |
117 | 127 | | |
118 | 128 | | |
| |||
0 commit comments