Fix retrieval of app version in auto_update2
This commit is contained in:
parent
5dd9db3607
commit
d85db44552
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue