Skip to content

Commit

Permalink
fix: wrong loading server status;
Browse files Browse the repository at this point in the history
also add more log
  • Loading branch information
ci010 committed Jul 14, 2019
1 parent 692fa1a commit 87a6d95
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/store/modules/profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ const mod = {
delete option.settings;
delete option.refreshing;
delete option.problems;
delete option.status;

fitin(profile, option);

Expand Down Expand Up @@ -100,6 +101,7 @@ const mod = {
async init({ state, commit, dispatch, rootGetters, rootState }) {
const profiles = rootGetters.profiles;
if (profiles.length === 0) {
console.log('Cannot find any profile, try to init one default modpack');
await dispatch('createAndSelectProfile', { type: 'modpack' });
} else if (!rootGetters.missingJava) {
for (const profile of profiles) {
Expand Down Expand Up @@ -186,7 +188,7 @@ const mod = {
context.commit('addProfile', profile);

console.log('Created profile with option');
console.log(profile);
console.log(JSON.stringify(profile, null, 4));

return profile.id;
},
Expand Down

0 comments on commit 87a6d95

Please sign in to comment.