Make dialog.showOpenDialog accept callback.
This commit is contained in:
parent
d3dd2b4332
commit
c95cfc9540
2 changed files with 53 additions and 13 deletions
|
@ -28,7 +28,8 @@ module.exports =
|
|||
binding.showOpenDialog String(options.title),
|
||||
String(options.defaultPath),
|
||||
properties,
|
||||
window
|
||||
window,
|
||||
callback
|
||||
|
||||
showSaveDialog: (window, options) ->
|
||||
throw new TypeError('Invalid window') unless window?.constructor is BrowserWindow
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue