Skip to content

Commit

Permalink
fix: skip the optional problem to launch
Browse files Browse the repository at this point in the history
Former-commit-id: ec76626
  • Loading branch information
ci010 committed Jul 15, 2019
1 parent 6b33c8e commit ac19098
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/renderer/windows/main/HomePage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,12 @@ export default {
this.tempDialog = true;
this.tempDialogText = this.$t('launch.checkingProblems');
if (this.problems.some(p => p.autofix)) {
const urgency = this.problems.filter(p => !p.optional);
if (urgency.some(p => p.autofix)) {
await this.handleAutoFix();
}
if (this.problems.length !== 0) {
this.handleManualFix(this.problems[0]);
if (urgency.length !== 0) {
this.handleManualFix(urgency[0]);
this.tempDialog = false;
return;
}
Expand Down

0 comments on commit ac19098

Please sign in to comment.