Skip to content

Commit

Permalink
Bug fix: "core.saveAll" command shall only save dirty widgets (#13942)
Browse files Browse the repository at this point in the history
  • Loading branch information
KR155E committed Jul 22, 2024
1 parent ed576b5 commit 10f3ff4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/browser/shell/application-shell.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2066,7 +2066,7 @@ export class ApplicationShell extends Widget {
*/
async saveAll(options?: SaveOptions): Promise<void> {
for (const widget of this.widgets) {
if (this.saveableService.canSaveNotSaveAs(widget)) {
if (Saveable.isDirty(widget) && this.saveableService.canSaveNotSaveAs(widget)) {
await this.saveableService.save(widget, options);
}
}
Expand Down

0 comments on commit 10f3ff4

Please sign in to comment.