diff --git a/crates/auto_update2/src/auto_update.rs b/crates/auto_update2/src/auto_update.rs index d2eab15d09967a84c5c11004ec70419795e0bf01..72dbe32b5a6fbf53304896d9d5d2fbb64d44f8d3 100644 --- a/crates/auto_update2/src/auto_update.rs +++ b/crates/auto_update2/src/auto_update.rs @@ -102,7 +102,7 @@ pub fn init(http_client: Arc, server_url: String, cx: &mut AppCo }) .detach(); - if let Some(version) = *ZED_APP_VERSION { + if let Some(version) = ZED_APP_VERSION.or_else(|| cx.app_metadata().app_version) { let auto_updater = cx.build_model(|cx| { let updater = AutoUpdater::new(version, http_client, server_url);