aboutsummaryrefslogtreecommitdiff
path: root/src-vue/src/plugins/store.ts
diff options
context:
space:
mode:
authorGeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com>2022-10-20 23:14:11 +0200
committerGitHub <noreply@github.com>2022-10-20 23:14:11 +0200
commit5cc82fb80f5f91ed9d4a32a71e090a9a805ff2a9 (patch)
tree431d14cb0983e78bb8ac870e3ad55088a4d2345e /src-vue/src/plugins/store.ts
parent31f26c4dd4a92bb5826ad2af9ccb9808fca40e40 (diff)
downloadFlightCore-5cc82fb80f5f91ed9d4a32a71e090a9a805ff2a9.tar.gz
FlightCore-5cc82fb80f5f91ed9d4a32a71e090a9a805ff2a9.zip
refactor: Various formatting and fixes (#23)
* refactor: Add error return type * style: Auto-format Only minor changes, did not take over all changes from auto-format. * refactor: Rename function to get FC version number To make it more clear which version number we're getting (FlightCore vs Northstar)
Diffstat (limited to 'src-vue/src/plugins/store.ts')
-rw-r--r--src-vue/src/plugins/store.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src-vue/src/plugins/store.ts b/src-vue/src/plugins/store.ts
index 4fdf50a3..c731b98d 100644
--- a/src-vue/src/plugins/store.ts
+++ b/src-vue/src/plugins/store.ts
@@ -33,7 +33,7 @@ export interface FlightCoreStore {
let notification_handle: NotificationHandle;
export const store = createStore<FlightCoreStore>({
- state (): FlightCoreStore {
+ state(): FlightCoreStore {
return {
developer_mode: false,
game_path: undefined as unknown as string,
@@ -197,7 +197,7 @@ async function _initializeApp(state: any) {
// Grab Northstar release canal value from store if exists
var persistent_northstar_release_canal = (await persistentStore.get('northstar-release-canal')) as any;
- if(persistent_northstar_release_canal) { // For some reason, the plugin-store doesn't throw an eror but simply returns `null` when key not found
+ if (persistent_northstar_release_canal) { // For some reason, the plugin-store doesn't throw an eror but simply returns `null` when key not found
// Put value from peristent store into current store
state.northstar_release_canal = persistent_northstar_release_canal.value as string;
}
@@ -206,7 +206,7 @@ async function _initializeApp(state: any) {
}
// Get FlightCore version number
- state.flightcore_version = await invoke("get_version_number");
+ state.flightcore_version = await invoke("get_flightcore_version_number");
const result = await invoke("find_game_install_location_caller")
.catch((err) => {