mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-01-23 02:36:05 +00:00
fix(electron): missing browser window when showing dialog message box
This commit is contained in:
parent
a45cd07872
commit
e76c300b7b
1 changed files with 2 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue