aboutsummaryrefslogtreecommitdiff
path: root/src-ui/src/main.ts
diff options
context:
space:
mode:
authorGeckoEidechse <gecko.eidechse+git@pm.me>2022-09-13 22:46:14 +0200
committerGeckoEidechse <gecko.eidechse+git@pm.me>2022-09-13 22:46:14 +0200
commitb3e705512efe8a9aab438af3d77b6c26510f7135 (patch)
treebc5a51fc927eac11cb263878e005eb885e4f6e29 /src-ui/src/main.ts
parent05b90d289b684e18b418d60e594b4c89423ad0e0 (diff)
downloadFlightCore-b3e705512efe8a9aab438af3d77b6c26510f7135.tar.gz
FlightCore-b3e705512efe8a9aab438af3d77b6c26510f7135.zip
Do now show version number in omni-button
Use separate field below to show version number
Diffstat (limited to 'src-ui/src/main.ts')
-rw-r--r--src-ui/src/main.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/src-ui/src/main.ts b/src-ui/src/main.ts
index f8a0a254..8d08560c 100644
--- a/src-ui/src/main.ts
+++ b/src-ui/src/main.ts
@@ -33,7 +33,7 @@ async function get_northstar_version_number_and_set_button_accordingly(omniButto
let northstarVersionHolderEl = $("northstar-version-holder") as HTMLElement;
northstarVersionHolderEl.textContent = `Installed Northstar version: v${globalState.installed_northstar_version}`;
- omniButtonEl.textContent = `${button_play_string} (v${northstar_version_number})`;
+ omniButtonEl.textContent = button_play_string;
await invoke("check_is_northstar_outdated", { gamePath: globalState.gamepath })
.then((message) => {
console.log(message);
@@ -166,7 +166,7 @@ document.addEventListener("DOMContentLoaded", async function () {
break;
// Launch Northstar
- case `${button_play_string} (v${globalState.installed_northstar_version})`:
+ case button_play_string:
let game_install = {
game_path: globalState.gamepath,
install_type: installTypeHolderEl.textContent
@@ -174,7 +174,7 @@ document.addEventListener("DOMContentLoaded", async function () {
await invoke("launch_northstar_caller", { gameInstall: game_install })
.then((message) => {
console.log(message);
- omniButtonEl.textContent = `${button_launched_string} (v${globalState.installed_northstar_version})`;
+ omniButtonEl.textContent = button_launched_string;
})
.catch((error) => {
console.error(error);
@@ -185,7 +185,7 @@ document.addEventListener("DOMContentLoaded", async function () {
// Do nothing when clicked during install/update/game-launched
case button_in_update_string:
case button_in_install_string:
- case `${button_launched_string} (v${globalState.installed_northstar_version})`:
+ case button_launched_string:
break;
// Fallback