From d94001f445bd89502514fedc7dc1d64dc79c8b21 Mon Sep 17 00:00:00 2001 From: Cole Miller Date: Wed, 12 Mar 2025 09:50:25 -0400 Subject: [PATCH] git: Fix placeholder dots in untracked files (#26537) This regressed at some point. Release Notes: - N/A --- crates/git_ui/src/git_panel.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/crates/git_ui/src/git_panel.rs b/crates/git_ui/src/git_panel.rs index 8fe306c932106b9bd15db9e0e0c19ac7846f0943..48c1eb19e7c6a0b1e2f8e13e9088d031e5ad92a3 100644 --- a/crates/git_ui/src/git_panel.rs +++ b/crates/git_ui/src/git_panel.rs @@ -3634,7 +3634,11 @@ impl GitPanel { Checkbox::new(checkbox_id, is_staged) .disabled(!has_write_access) .fill() - .placeholder(!self.has_staged_changes() && !self.has_conflicts()) + .placeholder( + !self.has_staged_changes() + && !self.has_conflicts() + && !entry.status.is_created(), + ) .elevation(ElevationIndex::Surface) .on_click({ let entry = entry.clone();