Use the new function converter in dialog api.
This commit is contained in:
parent
499c9bc3b9
commit
1dd57bd3a4
2 changed files with 20 additions and 72 deletions
|
@ -30,7 +30,7 @@ module.exports =
|
|||
String(options.defaultPath),
|
||||
properties,
|
||||
window,
|
||||
callback
|
||||
(success, result) -> callback if success then result
|
||||
|
||||
showSaveDialog: (window, options, callback) ->
|
||||
unless window?.constructor is BrowserWindow
|
||||
|
@ -46,7 +46,7 @@ module.exports =
|
|||
binding.showSaveDialog String(options.title),
|
||||
String(options.defaultPath),
|
||||
window,
|
||||
callback
|
||||
(success, result) -> callback if success then result
|
||||
|
||||
showMessageBox: (window, options, callback) ->
|
||||
unless window?.constructor is BrowserWindow
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue