docs: Recommend use of callback with dialog.showSaveDialog (#16649)
See #14606. Notes: no-notes
This commit is contained in:
parent
0a047194b6
commit
24f1eac84f
1 changed files with 3 additions and 0 deletions
|
@ -117,6 +117,9 @@ The `filters` specifies an array of file types that can be displayed, see
|
||||||
If a `callback` is passed, the API call will be asynchronous and the result
|
If a `callback` is passed, the API call will be asynchronous and the result
|
||||||
will be passed via `callback(filename)`.
|
will be passed via `callback(filename)`.
|
||||||
|
|
||||||
|
**Note:** On macOS, using the `callback` is recommended to avoid issues when
|
||||||
|
expanding and collapsing the dialog.
|
||||||
|
|
||||||
### `dialog.showMessageBox([browserWindow, ]options[, callback])`
|
### `dialog.showMessageBox([browserWindow, ]options[, callback])`
|
||||||
|
|
||||||
* `browserWindow` [BrowserWindow](browser-window.md) (optional)
|
* `browserWindow` [BrowserWindow](browser-window.md) (optional)
|
||||||
|
|
Loading…
Reference in a new issue