Skip to content

Commit

Permalink
Fix retrieval of app version in auto_update2 (#3481)
Browse files Browse the repository at this point in the history
With this fix, auto-updates should work on nightly.
  • Loading branch information
maxbrunsfeld authored Dec 1, 2023
2 parents 5dd9db3 + d85db44 commit d788bf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/auto_update2/src/auto_update.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ pub fn init(http_client: Arc<dyn HttpClient>, 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);

Expand Down

0 comments on commit d788bf3

Please sign in to comment.