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: Fix blame avatars using wrong config (#39195)

Lukas Wirth9d895c5ea79b
diff --git a/crates/git_ui/src/blame_ui.rs b/crates/git_ui/src/blame_ui.rs
index ec405c80951..b1dca288763 100644
--- a/crates/git_ui/src/blame_ui.rs
+++ b/crates/git_ui/src/blame_ui.rs
@@ -47,18 +47,14 @@ impl BlameRenderer for GitBlameRenderer {
let author_name = blame_entry.author.as_deref().unwrap_or("<no name>");
let name = util::truncate_and_trailoff(author_name, GIT_BLAME_MAX_AUTHOR_CHARS_DISPLAYED);
- let avatar = if ProjectSettings::get_global(cx)
- .git
- .inline_blame
- .show_commit_summary
- {
- None
- } else {
+ let avatar = if ProjectSettings::get_global(cx).git.blame.show_avatar {
CommitAvatar::new(
&blame_entry.sha.to_string().into(),
details.as_ref().and_then(|it| it.remote.as_ref()),
)
.render(window, cx)
+ } else {
+ None
};
Some(
div()