docs: make the dialog example work out of the box on all 3 platforms (#19055)
This commit is contained in:
parent
21d04ed3f4
commit
4e2990d3aa
1 changed files with 2 additions and 2 deletions
|
@ -4,11 +4,11 @@
|
||||||
|
|
||||||
Process: [Main](../glossary.md#main-process)
|
Process: [Main](../glossary.md#main-process)
|
||||||
|
|
||||||
An example of showing a dialog to select multiple files and directories:
|
An example of showing a dialog to select multiple files:
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
const { dialog } = require('electron')
|
const { dialog } = require('electron')
|
||||||
console.log(dialog.showOpenDialog({ properties: ['openFile', 'openDirectory', 'multiSelections'] }))
|
console.log(dialog.showOpenDialog({ properties: ['openFile', 'multiSelections'] }))
|
||||||
```
|
```
|
||||||
|
|
||||||
The Dialog is opened from Electron's main thread. If you want to use the dialog
|
The Dialog is opened from Electron's main thread. If you want to use the dialog
|
||||||
|
|
Loading…
Reference in a new issue