From 14fdc631291a117b8a137b6fbbebfe3dea3a8697 Mon Sep 17 00:00:00 2001 From: GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> Date: Sun, 30 Jul 2023 02:11:28 +0200 Subject: refactor: Replace naive `game_path` argument with `GameInstall` (#454) We should always pass the whole object instead of just a field for easier expandability in the future Co-authored-by: Jan200101 --- src-vue/src/plugins/store.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src-vue/src') diff --git a/src-vue/src/plugins/store.ts b/src-vue/src/plugins/store.ts index 2991ad1d..aee8bbce 100644 --- a/src-vue/src/plugins/store.ts +++ b/src-vue/src/plugins/store.ts @@ -465,13 +465,13 @@ function _initializeListeners(state: any) { * state, for it to be displayed in UI. */ async function _get_northstar_version_number(state: any) { - await invoke("get_northstar_version_number", { gamePath: state.game_install.game_path }) + await invoke("get_northstar_version_number", { gameInstall: state.game_install }) .then((message) => { let northstar_version_number: string = message as string; state.installed_northstar_version = northstar_version_number; state.northstar_state = NorthstarState.READY_TO_PLAY; - invoke("check_is_northstar_outdated", { gamePath: state.game_install.game_path, northstarPackageName: state.northstar_release_canal }) + invoke("check_is_northstar_outdated", { gameInstall: state.game_install, northstarPackageName: state.northstar_release_canal }) .then((message) => { if (message) { state.northstar_state = NorthstarState.MUST_UPDATE; -- cgit v1.2.3