Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

git_ui: Hide status icon when status_style is set to label_color (#51947)

Valery Borovskyce7cd7c163b2
diff --git a/crates/git_ui/src/git_panel.rs b/crates/git_ui/src/git_panel.rs
index 1fc4813157f..d8476555f55 100644
--- a/crates/git_ui/src/git_panel.rs
+++ b/crates/git_ui/src/git_panel.rs
@@ -5158,7 +5158,9 @@ impl GitPanel {
}),
)
})
- .child(git_status_icon(status))
+ .when(status_style != StatusStyle::LabelColor, |el| {
+ el.child(git_status_icon(status))
+ })
.map(|this| {
if tree_view {
this.pl(px(depth as f32 * TREE_INDENT)).child(