Skip to content

Commit

Permalink
cleanup code
Browse files Browse the repository at this point in the history
This commit cleans up the code by removing the unnecessary
`this.shell.saveAll()` which was present in `saveDirty()`

Signed-off-by: Vlad Arama <[email protected]>
  • Loading branch information
Vlad Arama committed Aug 22, 2023
1 parent feaf963 commit 4a95793
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/core/src/browser/common-frontend-contribution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1150,8 +1150,8 @@ export class CommonFrontendContribution implements FrontendApplicationContributi
const captionsToSave = this.unsavedTabsCaptions();
const untitledCaptionsToSave = this.unsavedUntitledTabsCaptions();
const result = await confirmExitWithOrWithoutSaving(captionsToSave, async () => {
await this.shell.saveAll();
await this.saveDirty(untitledCaptionsToSave);
await this.shell.saveAll();
});
return result;
}
Expand Down Expand Up @@ -1188,7 +1188,6 @@ export class CommonFrontendContribution implements FrontendApplicationContributi
await this.saveResourceService.save(widget);
}
}
await this.shell.saveAll();
}
protected toggleBreadcrumbs(): void {
const value: boolean | undefined = this.preferenceService.get('breadcrumbs.enabled');
Expand Down

0 comments on commit 4a95793

Please sign in to comment.