Skip to content

Commit

Permalink
fix: Cannot quit app when there is a dirty editor (eclipse-theia#13164)
Browse files Browse the repository at this point in the history
Contributed by STMicroelectronics

Signed-off-by: Emil HAMMARSTEDT <emil.hammarstedt@st.com>
  • Loading branch information
emilhammarstedtst committed Dec 13, 2023
1 parent 469bd74 commit 3629429
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions packages/core/src/browser/common-frontend-contribution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1204,14 +1204,8 @@ export class CommonFrontendContribution implements FrontendApplicationContributi
await this.saveDirty(untitledCaptionsToSave);
await this.shell.saveAll();
});
if (this.shell.canSaveAll()) {
this.shouldPreventClose = true;
return false;
} else {
this.shouldPreventClose = false;
return result;
}

this.shouldPreventClose = !result;
return result;
}
};
}
Expand Down

0 comments on commit 3629429

Please sign in to comment.