From 63dab5f8910197b69eb6383ed0ae99a87799ab73 Mon Sep 17 00:00:00 2001 From: Cole Miller Date: Mon, 10 Mar 2025 16:47:35 -0400 Subject: [PATCH] Add a missing notify when updating the project diff (#26396) Closes #ISSUE Release Notes: - Git Beta: Fixed a bug that caused the project diff not to update in response to git-related events Co-authored-by: Max Brunsfeld --- crates/git_ui/src/project_diff.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/git_ui/src/project_diff.rs b/crates/git_ui/src/project_diff.rs index 5d0ef6698d544205bf7423dc2358d27c726d7e53..01393186249b82e4280d73ce9014c9b710a06682 100644 --- a/crates/git_ui/src/project_diff.rs +++ b/crates/git_ui/src/project_diff.rs @@ -474,7 +474,10 @@ impl ProjectDiff { })?; } } - this.update(&mut cx, |this, _| this.pending_scroll.take())?; + this.update(&mut cx, |this, cx| { + this.pending_scroll.take(); + cx.notify(); + })?; } Ok(())