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.

Fix auto update status not being shown in the title bar (#53552)

Angel P.1fcf9749a6ed
diff --git a/crates/title_bar/src/update_version.rs b/crates/title_bar/src/update_version.rs
index 642187c3aba..454474c6bc1 100644
--- a/crates/title_bar/src/update_version.rs
+++ b/crates/title_bar/src/update_version.rs
@@ -84,11 +84,11 @@ impl Render for UpdateVersion {
AutoUpdateStatus::Checking if self.update_check_type.is_manual() => {
UpdateButton::checking().into_any_element()
}
- AutoUpdateStatus::Downloading { version } if self.update_check_type.is_manual() => {
+ AutoUpdateStatus::Downloading { version } => {
let tooltip = Self::version_tooltip_message(&version);
UpdateButton::downloading(tooltip).into_any_element()
}
- AutoUpdateStatus::Installing { version } if self.update_check_type.is_manual() => {
+ AutoUpdateStatus::Installing { version } => {
let tooltip = Self::version_tooltip_message(&version);
UpdateButton::installing(tooltip).into_any_element()
}
@@ -116,10 +116,7 @@ impl Render for UpdateVersion {
}))
.into_any_element()
}
- AutoUpdateStatus::Idle
- | AutoUpdateStatus::Checking { .. }
- | AutoUpdateStatus::Downloading { .. }
- | AutoUpdateStatus::Installing { .. } => Empty.into_any_element(),
+ AutoUpdateStatus::Idle | AutoUpdateStatus::Checking { .. } => Empty.into_any_element(),
}
}
}