git: Only show inline git blame when editor is focused (#10680)

Release Notes:

- N/A
This commit is contained in:
Thorsten Ball 2024-04-17 13:28:11 +02:00 committed by GitHub
parent 62171387f6
commit d7becce9aa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -8946,7 +8946,7 @@ impl Editor {
}
pub fn render_git_blame_inline(&mut self, cx: &mut WindowContext) -> bool {
self.show_git_blame_inline && self.has_blame_entries(cx)
self.focus_handle.is_focused(cx) && self.show_git_blame_inline && self.has_blame_entries(cx)
}
fn has_blame_entries(&self, cx: &mut WindowContext) -> bool {