Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Do not show update "View Release Notes" notification in nightly builds (#33394)
Joseph T. Lyons3740eec5bf7e
diff --git a/crates/auto_update_ui/src/auto_update_ui.rs b/crates/auto_update_ui/src/auto_update_ui.rsindex 25d64bc3e82..30c1cddec29 100644--- a/crates/auto_update_ui/src/auto_update_ui.rs+++ b/crates/auto_update_ui/src/auto_update_ui.rs@@ -132,6 +132,11 @@ pub fn notify_if_app_was_updated(cx: &mut App) {let Some(updater) = AutoUpdater::get(cx) else {return;};++ if let ReleaseChannel::Nightly = ReleaseChannel::global(cx) {+ return;+ }+let should_show_notification = updater.read(cx).should_show_update_notification(cx);cx.spawn(async move |cx| {let should_show_notification = should_show_notification.await?;