Skip to content

Commit

Permalink
Merge pull request #1178 from ebkr/flush-modlist-before-opening-profile
Browse files Browse the repository at this point in the history
Flush local mod list before moving to profile
  • Loading branch information
MythicManiac authored Jan 27, 2024
2 parents c69c403 + 1436f39 commit e95f3c3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/pages/Profiles.vue
Original file line number Diff line number Diff line change
Expand Up @@ -429,9 +429,10 @@ export default class Profiles extends Vue {
return sanitize(nameToSanitize);
}
setProfileAndContinue() {
settings.setProfile(Profile.getActiveProfile().getProfileName());
this.$router.push({name: 'manager.installed'});
async setProfileAndContinue() {
await this.$store.dispatch('updateModList', []);
await settings.setProfile(Profile.getActiveProfile().getProfileName());
await this.$router.push({name: 'manager.installed'});
}
downloadImportedProfileMods(modList: ExportMod[], callback?: () => void) {
Expand Down

0 comments on commit e95f3c3

Please sign in to comment.