git: Fix placeholder dots in untracked files (#26537)

This regressed at some point.

Release Notes:

- N/A
This commit is contained in:
Cole Miller 2025-03-12 09:50:25 -04:00 committed by GitHub
parent 6bcfc4014b
commit d94001f445
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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();