From 633df53388832b72418ad388439dff68e31bdbfd Mon Sep 17 00:00:00 2001 From: "gcp-cherry-pick-bot[bot]" <98988430+gcp-cherry-pick-bot[bot]@users.noreply.github.com> Date: Mon, 10 Mar 2025 17:31:21 -0400 Subject: [PATCH] Add a missing notify when updating the project diff (cherry-pick #26396) (#26400) Cherry-picked 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 Co-authored-by: Cole Miller 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 af882037c14a17a029a8b33fccf3372ef1ae8b04..16b525512e0ee838bece680fa0811e13de42bcfc 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(())