aboutsummaryrefslogtreecommitdiff
path: root/src-vue/src
diff options
context:
space:
mode:
Diffstat (limited to 'src-vue/src')
-rw-r--r--src-vue/src/plugins/store.ts46
1 files changed, 23 insertions, 23 deletions
diff --git a/src-vue/src/plugins/store.ts b/src-vue/src/plugins/store.ts
index ee4af283..57406dec 100644
--- a/src-vue/src/plugins/store.ts
+++ b/src-vue/src/plugins/store.ts
@@ -11,7 +11,7 @@ import { NorthstarState } from '../utils/NorthstarState';
import { appDir } from '@tauri-apps/api/path';
import { open } from '@tauri-apps/api/dialog';
import { Store } from 'tauri-plugin-store-api';
-import {router} from "../main";
+import { router } from "../main";
import ReleaseInfo from "../utils/ReleaseInfo";
import { ThunderstoreMod } from '../utils/thunderstore/ThunderstoreMod';
import { NorthstarMod } from "../utils/NorthstarMod";
@@ -86,7 +86,7 @@ export const store = createStore<FlightCoreStore>({
_initializeListeners(state);
},
updateCurrentTab(state: any, newTab: Tabs) {
- router.push({path: newTab});
+ router.push({ path: newTab });
},
async updateGamePath(state: FlightCoreStore) {
// Open a selection dialog for directories
@@ -320,13 +320,13 @@ async function _initializeApp(state: any) {
}
// Grab "Enable releases switching" setting from store if possible
- const valueFromStore: {value: boolean} | null = await persistentStore.get('northstar-releases-switching');
+ const valueFromStore: { value: boolean } | null = await persistentStore.get('northstar-releases-switching');
if (valueFromStore) {
state.enableReleasesSwitch = valueFromStore.value;
}
// Grab "Thunderstore mods per page" setting from store if possible
- const perPageFromStore: {value: number} | null = await persistentStore.get('thunderstore-mods-per-page');
+ const perPageFromStore: { value: number } | null = await persistentStore.get('thunderstore-mods-per-page');
if (perPageFromStore && perPageFromStore.value) {
state.mods_per_page = perPageFromStore.value;
}
@@ -420,23 +420,23 @@ function _initializeListeners(state: any) {
*/
async function _get_northstar_version_number(state: any) {
await invoke("get_northstar_version_number_caller", { gamePath: state.game_path })
- .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_path, northstarPackageName: state.northstar_release_canal })
- .then((message) => {
- if (message) {
- state.northstar_state = NorthstarState.MUST_UPDATE;
- }
- })
- .catch((error) => {
- console.error(error);
- alert(error);
- });
- })
- .catch((error) => {
- state.northstar_state = NorthstarState.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_path, northstarPackageName: state.northstar_release_canal })
+ .then((message) => {
+ if (message) {
+ state.northstar_state = NorthstarState.MUST_UPDATE;
+ }
+ })
+ .catch((error) => {
+ console.error(error);
+ alert(error);
+ });
+ })
+ .catch((error) => {
+ state.northstar_state = NorthstarState.INSTALL;
+ })
}