mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-08 07:35:01 +03:00
Fix version comparison in auto update
Co-authored-by: Antonio Scandurra <antonio@zed.dev>
This commit is contained in:
parent
dd89ecffbf
commit
90fc1ebaf6
@ -270,7 +270,7 @@ impl AutoUpdater {
|
||||
ReleaseChannel::Nightly => cx
|
||||
.try_read_global::<AppCommitSha, _>(|sha, _| release.version != sha.0)
|
||||
.unwrap_or(true),
|
||||
_ => release.version.parse::<SemanticVersion>()? <= current_version,
|
||||
_ => release.version.parse::<SemanticVersion>()? > current_version,
|
||||
};
|
||||
|
||||
if !should_download {
|
||||
|
Loading…
Reference in New Issue
Block a user