mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-06 02:37:21 +00:00
Fix version comparison in auto update
Co-authored-by: Antonio Scandurra <antonio@zed.dev>
This commit is contained in:
parent
dd89ecffbf
commit
90fc1ebaf6
1 changed files with 1 additions and 1 deletions
|
@ -270,7 +270,7 @@ impl AutoUpdater {
|
||||||
ReleaseChannel::Nightly => cx
|
ReleaseChannel::Nightly => cx
|
||||||
.try_read_global::<AppCommitSha, _>(|sha, _| release.version != sha.0)
|
.try_read_global::<AppCommitSha, _>(|sha, _| release.version != sha.0)
|
||||||
.unwrap_or(true),
|
.unwrap_or(true),
|
||||||
_ => release.version.parse::<SemanticVersion>()? <= current_version,
|
_ => release.version.parse::<SemanticVersion>()? > current_version,
|
||||||
};
|
};
|
||||||
|
|
||||||
if !should_download {
|
if !should_download {
|
||||||
|
|
Loading…
Reference in a new issue