aboutsummaryrefslogtreecommitdiff
path: root/src-ui/src/main.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src-ui/src/main.ts')
-rw-r--r--src-ui/src/main.ts4
1 files changed, 4 insertions, 0 deletions
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);