提交 43ff6af3 编写于 作者: J João Moreno

Merge pull request #4744 from Microsoft/ben/fix-4739

New untitiled file not saved on exit (fixes #4739)
......@@ -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 {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册