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.

auto_update: Always display update progress when requesting manual update (#51087)

Lukas Wirth1fa4fed96776
diff --git a/crates/auto_update/src/auto_update.rs b/crates/auto_update/src/auto_update.rs
index 33cc1006792..9b9ccee3b69 100644
--- a/crates/auto_update/src/auto_update.rs
+++ b/crates/auto_update/src/auto_update.rs
@@ -380,6 +380,10 @@ impl AutoUpdater {
pub fn poll(&mut self, check_type: UpdateCheckType, cx: &mut Context<Self>) {
if self.pending_poll.is_some() {
+ if self.update_check_type == UpdateCheckType::Automatic {
+ self.update_check_type = check_type;
+ cx.notify();
+ }
return;
}
self.update_check_type = check_type;
@@ -549,7 +553,7 @@ impl AutoUpdater {
asset,
metrics_id: metrics_id.as_deref(),
system_id: system_id.as_deref(),
- is_staff: is_staff,
+ is_staff,
},
)?;