Skip to content

Commit

Permalink
fix: Refetch profiles when opening SettingsView (#498)
Browse files Browse the repository at this point in the history
Refetches profiles every time we open the SettingsView. Removes superfluous profile fetch on application launch.
  • Loading branch information
Jan200101 authored Oct 9, 2023
1 parent 0fb3a61 commit cb2bc0d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions src-vue/src/plugins/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -444,8 +444,6 @@ async function _initializeApp(state: any) {
await _get_northstar_version_number(state);
}

store.commit('fetchProfiles');

await invoke<[number, number]>("get_server_player_count")
.then((message) => {
state.player_count = message[0];
Expand Down
1 change: 1 addition & 0 deletions src-vue/src/views/SettingsView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ export default defineComponent({
},
mounted() {
document.querySelector('input')!.disabled = true;
this.$store.commit('fetchProfiles');
},
unmounted() {
if (('' + this.modsPerPage) === '') {
Expand Down

0 comments on commit cb2bc0d

Please sign in to comment.