diff options
-rw-r--r-- | src-tauri/src/main.rs | 6 | ||||
-rw-r--r-- | src-ui/src/main.ts | 18 |
2 files changed, 14 insertions, 10 deletions
diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index 4244e364..09123040 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -222,5 +222,9 @@ fn launch_northstar(game_install: GameInstall) -> Result<String, String> { return Ok("Launched game".to_string()); } - Err(format!("Not yet implemented for {:?} on {}", game_install.install_type, get_host_os())) + Err(format!( + "Not yet implemented for {:?} on {}", + game_install.install_type, + get_host_os() + )) } diff --git a/src-ui/src/main.ts b/src-ui/src/main.ts index 103e5178..98a772ad 100644 --- a/src-ui/src/main.ts +++ b/src-ui/src/main.ts @@ -15,7 +15,7 @@ const button_manual_find_string = "Manually select Titanfall2 install location"; interface GameInstall { game_path: string; install_type: string; - } +} // Stores the overall state of the application var globalState = { @@ -153,14 +153,14 @@ document.addEventListener("DOMContentLoaded", async function () { install_type: installTypeHolderEl.textContent } as GameInstall; await invoke("launch_northstar", { gameInstall: game_install }) - .then((message) => { - console.log(message); - omniButtonEl.textContent = `${button_launched_string} (v${globalState.installed_northstar_version})`; - }) - .catch((error) => { - console.error(error); - alert(error); - }); + .then((message) => { + console.log(message); + omniButtonEl.textContent = `${button_launched_string} (v${globalState.installed_northstar_version})`; + }) + .catch((error) => { + console.error(error); + alert(error); + }); break; // Do nothing when clicked during install/update/game-launched |