Ensure dialog is attached to parent window (#691)
This commit is contained in:
parent
60878cd4ed
commit
842d6cd001
|
@ -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[] }) => {
|
||||
|
|
Loading…
Reference in New Issue