diff options
author | GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> | 2023-01-04 19:12:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-04 19:12:53 +0100 |
commit | 6bfc6996e12ba201f52de586c67f3db4a97bc722 (patch) | |
tree | 172a6d6f69fc854723208de63f60a19a9ab87f94 /src-tauri/src/main.rs | |
parent | 8d9dc830476170d01f94fe4dc6967b3d4ecdbab0 (diff) | |
download | FlightCore-6bfc6996e12ba201f52de586c67f3db4a97bc722.tar.gz FlightCore-6bfc6996e12ba201f52de586c67f3db4a97bc722.zip |
feat: Show newest version number (#124)
* refactor: Move getting new FC version to own func
* refactor: Deserialize into object
* refactor: Return whole object instead of 2 strings
More readable
* refactor: Rename variable
* refactor: Use fields of object directly
instead of assigning to variables first
* feat: Expose backend func to get newest FC version
and then call it to get newest version number if current is outdated.
This way we can display to the user how far behind their currently
installed version is.
Diffstat (limited to 'src-tauri/src/main.rs')
-rw-r--r-- | src-tauri/src/main.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index e8912d60..7d08e72e 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -12,7 +12,9 @@ use std::{ use app::*; mod github; -use github::release_notes::{check_is_flightcore_outdated, get_northstar_release_notes}; +use github::release_notes::{ + check_is_flightcore_outdated, get_newest_flightcore_version, get_northstar_release_notes, +}; mod repair_and_verify; use repair_and_verify::{ @@ -101,6 +103,7 @@ fn main() { get_installed_mods_caller, install_mod_caller, clean_up_download_folder_caller, + get_newest_flightcore_version, ]) .run(tauri::generate_context!()) .expect("error while running tauri application"); |