Ensure dialog is attached to parent window (#691)

This commit is contained in:
Oscar Hinton 2022-02-22 20:06:14 +01:00 committed by GitHub
parent 60878cd4ed
commit 842d6cd001
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ export class ElectronMainMessagingService implements MessagingService {
});
ipcMain.handle("showMessageBox", (event, options) => {
return dialog.showMessageBox(options);
return dialog.showMessageBox(this.windowMain.win, options);
});
ipcMain.handle("openContextMenu", (event, options: { menu: RendererMenuItem[] }) => {