Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

auto-update: Link to the current release's changelog, not the latest one (#3076)

Piotr Osiewicza785eb914140
diff --git a/crates/auto_update/src/auto_update.rs b/crates/auto_update/src/auto_update.rs
index 822886b5801..0d537b882a8 100644
--- a/crates/auto_update/src/auto_update.rs
+++ b/crates/auto_update/src/auto_update.rs
@@ -115,13 +115,15 @@ pub fn check(_: &Check, cx: &mut AppContext) {
fn view_release_notes(_: &ViewReleaseNotes, cx: &mut AppContext) {
if let Some(auto_updater) = AutoUpdater::get(cx) {
- let server_url = &auto_updater.read(cx).server_url;
+ let auto_updater = auto_updater.read(cx);
+ let server_url = &auto_updater.server_url;
+ let current_version = auto_updater.current_version;
let latest_release_url = if cx.has_global::<ReleaseChannel>()
&& *cx.global::<ReleaseChannel>() == ReleaseChannel::Preview
{
- format!("{server_url}/releases/preview/latest")
+ format!("{server_url}/releases/preview/{current_version}")
} else {
- format!("{server_url}/releases/stable/latest")
+ format!("{server_url}/releases/stable/{current_version}")
};
cx.platform().open_url(&latest_release_url);
}