From 8a36c459d554afd9cb08bf82422db3c02817dd14 Mon Sep 17 00:00:00 2001 From: veeso Date: Sat, 26 Jun 2021 18:06:16 +0200 Subject: [PATCH] Restored version from env --- src/ui/activities/auth/mod.rs | 2 +- src/ui/activities/auth/view.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/activities/auth/mod.rs b/src/ui/activities/auth/mod.rs index 7b4c255..a899541 100644 --- a/src/ui/activities/auth/mod.rs +++ b/src/ui/activities/auth/mod.rs @@ -118,7 +118,7 @@ impl AuthActivity { if client.get_check_for_updates() { debug!("Check for updates is enabled"); // Send request - match git::check_for_updates("0.5.0") { + match git::check_for_updates(env!("CARGO_PKG_VERSION")) { Ok(github_tag) => github_tag, Err(err) => { // Report error diff --git a/src/ui/activities/auth/view.rs b/src/ui/activities/auth/view.rs index 9e64b19..fe7a03d 100644 --- a/src/ui/activities/auth/view.rs +++ b/src/ui/activities/auth/view.rs @@ -191,7 +191,7 @@ impl AuthActivity { .with_spans(vec![ TextSpan::from("termscp "), TextSpanBuilder::new(version).underlined().bold().build(), - TextSpan::from(" is now available! View release notes with "), + TextSpan::from(" is NOW available! Get it from ; view release notes with "), ]) .build(), )),