From c82336dfd2945680b4919dcbbc71ff3effd6809d Mon Sep 17 00:00:00 2001 From: GeckoEidechse Date: Thu, 1 Sep 2022 00:57:14 +0200 Subject: Add structure to implement Nortshtar update check Actual logic is not implemented yet --- src-ui/src/main.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src-ui/src') diff --git a/src-ui/src/main.ts b/src-ui/src/main.ts index 2150df4f..4cbd8099 100644 --- a/src-ui/src/main.ts +++ b/src-ui/src/main.ts @@ -68,7 +68,10 @@ document.addEventListener("DOMContentLoaded", async function () { if (northstar_version_number && northstar_version_number.length > 0) { globalState.installed_northstar_version = northstar_version_number; omniButtonEl.textContent = `Play (${northstar_version_number})`; - // TODO check if version is newest + let northstar_is_outdated = await invoke("check_is_northstar_outdated") as boolean; + if (northstar_is_outdated) { + omniButtonEl.textContent = "Update"; + } } console.log(globalState); } -- cgit v1.2.3