aboutsummaryrefslogtreecommitdiff
path: root/src-ui/src
diff options
context:
space:
mode:
authorGeckoEidechse <gecko.eidechse+git@pm.me>2022-09-16 23:34:04 +0200
committerGeckoEidechse <gecko.eidechse+git@pm.me>2022-09-16 23:34:04 +0200
commit6bc191427381f46aaf269e83598c94d91b470c1a (patch)
tree029cfc1627cd22f041d86f06b1fb00052779ef76 /src-ui/src
parent3fe3aea56a232c822ce411ae7d68fe259487d3a1 (diff)
downloadFlightCore-6bc191427381f46aaf269e83598c94d91b470c1a.tar.gz
FlightCore-6bc191427381f46aaf269e83598c94d91b470c1a.zip
Show in UI if FlightCore out-of-date
To show user if application is outdated should self-update somehow not work.
Diffstat (limited to 'src-ui/src')
-rw-r--r--src-ui/src/main.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/src-ui/src/main.ts b/src-ui/src/main.ts
index ba45b20c..3841d3a0 100644
--- a/src-ui/src/main.ts
+++ b/src-ui/src/main.ts
@@ -232,9 +232,12 @@ document.addEventListener("DOMContentLoaded", async function () {
// Run the following on initial page load
// Get version number
let version_number_string = await invoke("get_version_number") as string;
+ // Check if up-to-date
+ let flightcore_is_outdated = await invoke("check_is_flightcore_outdated_caller") as boolean;
+ let outdated_string = flightcore_is_outdated ? " (outdated, please update FlightCore)" : "";
// Get host OS
let host_os_string = await invoke("get_host_os_caller") as string;
- versionNumberHolderEl.textContent = `${version_number_string} (${host_os_string})`;
+ versionNumberHolderEl.textContent = `${version_number_string} (${host_os_string})${outdated_string}`;
// Get install location
await invoke("find_game_install_location_caller", { gamePath: globalState.gamepath })