git_panel: Fix buffer header checkbox not showing partially staged files (#42718)

Release Notes:

- Fixed buffer header controls (staging checkbox) not showing partially
staged files
This commit is contained in:
Jakub Konka
2025-11-14 12:55:04 +00:00
committed by GitHub
parent b4167caaf1
commit 37523b0007
5 changed files with 30 additions and 40 deletions
+1 -5
View File
@@ -63,11 +63,7 @@ impl BranchDiff {
window,
move |this, _git_store, event, _window, cx| match event {
GitStoreEvent::ActiveRepositoryChanged(_)
| GitStoreEvent::RepositoryUpdated(
_,
RepositoryEvent::StatusesChanged { full_scan: _ },
true,
)
| GitStoreEvent::RepositoryUpdated(_, RepositoryEvent::StatusesChanged, true)
| GitStoreEvent::ConflictsUpdated => {
cx.emit(BranchDiffEvent::FileListChanged);
*this.update_needed.borrow_mut() = ();