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 13:50:25 +00:00
committed by GitHub
parent 6bcfc4014b
commit d94001f445
+5 -1
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();