From d85db44552430df58476f283c63c8d3cffcde59f Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Fri, 1 Dec 2023 12:52:26 -0800 Subject: [PATCH] Fix retrieval of app version in auto_update2 --- crates/auto_update2/src/auto_update.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);