Skip to content

Commit

Permalink
Merge pull request #4744 from Microsoft/ben/fix-4739
Browse files Browse the repository at this point in the history
New untitiled file not saved on exit (fixes #4739)
  • Loading branch information
joaomoreno committed Mar 29, 2016
2 parents 1a7c3ee + 7f61950 commit 43ff6af
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/vs/workbench/electron-browser/window.ts
Expand Up @@ -162,7 +162,11 @@ export class ElectronWindow {
}

public showSaveDialog(options: Electron.Dialog.SaveDialogOptions, callback?: (fileName: string) => void): string {
return dialog.showSaveDialog(this.win, options, callback);
if (callback) {
return dialog.showSaveDialog(this.win, options, callback);
}

return dialog.showSaveDialog(this.win, options);
}

public setFullScreen(fullscreen: boolean): void {
Expand Down

0 comments on commit 43ff6af

Please sign in to comment.