Skip to content

Commit

Permalink
fix(profile): import to resources before create profile
Browse files Browse the repository at this point in the history
  • Loading branch information
ci010 committed Sep 18, 2019
1 parent 0829fe2 commit 76ad177
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/renderer/windows/main/ProfilesPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,9 @@ export default {
if (filenames && filenames.length > 0) {
for (const f of filenames) {
if (curseforge) {
this.$repo.dispatch('importCurseforgeModpack', f);
this.$repo.dispatch('importResource', { path: f, type: 'curseforge-modpack', background: true })
.then(task => this.$repo.dispatch('waitTask', task)
.then(() => this.$repo.dispatch('importCurseforgeModpack', { path: f })));
} else {
this.$repo.dispatch('importProfile', f);
}
Expand Down

0 comments on commit 76ad177

Please sign in to comment.