fix(electron): missing browser window when showing dialog message box

This commit is contained in:
Johannes Millan 2024-08-06 15:45:01 +02:00
parent a45cd07872
commit e76c300b7b

View file

@ -190,7 +190,8 @@ async function execWithFrontendErrorHandlerInform(
}
});
} else {
const res = await dialog.showMessageBox(null, {
const mainWin = getWin();
const res = await dialog.showMessageBox(mainWin, {
type: 'question',
buttons: ['Cancel', 'Yes, execute!'],
defaultId: 2,