From 53bf9962f5a4294211fcd70a15ee4c92af93e6a7 Mon Sep 17 00:00:00 2001 From: GeckoEidechse Date: Sat, 10 Sep 2022 18:44:06 +0200 Subject: Propagate install type to UI Install type is Steam, Origin, EAPlay --- src-ui/src/main.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src-ui/src') diff --git a/src-ui/src/main.ts b/src-ui/src/main.ts index 96481a83..63f73d73 100644 --- a/src-ui/src/main.ts +++ b/src-ui/src/main.ts @@ -87,6 +87,7 @@ document.addEventListener("DOMContentLoaded", async function () { let panicButtonEl = $("panic-button") as HTMLElement; let installLocationHolderEl = document.getElementById("install-location-holder") as HTMLInputElement; let versionNumberHolderEl = $("version-number-holder") as HTMLElement; + let installTypeHolderEl = $("install-type-holder") as HTMLElement; let omniButtonEl = document.getElementById("omni-button") as HTMLElement; // listen backend-ping event (from Tauri Rust App) @@ -195,9 +196,12 @@ document.addEventListener("DOMContentLoaded", async function () { // Change omni-button content based on whether game install was found omniButtonEl.textContent = button_install_string; + installLocationHolderEl.value = game_install_obj.game_path; globalState.gamepath = game_install_obj.game_path; + installTypeHolderEl.textContent = game_install_obj.install_type; + // Check installed Northstar version if found get_northstar_version_number_and_set_button_accordingly(omniButtonEl); console.log(globalState); -- cgit v1.2.3