fix: don't assign NSAlert to window which is not visible (#22672)
* fix: don't assign NSAlert to window which is not visible Without this change it's possible to create message box which can't be dismissed on mac. * fixup! fix: don't assign NSAlert to window which is not visible * fixup! fix: don't assign NSAlert to window which is not visible
This commit is contained in:
parent
1746ae8c35
commit
c65f41dfbd
2 changed files with 5 additions and 2 deletions
|
@ -269,6 +269,7 @@ Shows a message box, it will block the process until the message box is closed.
|
|||
It returns the index of the clicked button.
|
||||
|
||||
The `browserWindow` argument allows the dialog to attach itself to a parent window, making it modal.
|
||||
If `browserWindow` is not shown dialog will not be attached to it. In such case It will be displayed as independed window.
|
||||
|
||||
### `dialog.showMessageBox([browserWindow, ]options)`
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue