Add "icon" option for message box

This commit is contained in:
Cheng Zhao 2015-01-05 15:08:42 -08:00
parent 513052de87
commit 8457090b18
5 changed files with 64 additions and 29 deletions

View file

@ -42,6 +42,7 @@ module.exports =
options.title ?= ''
options.defaultPath ?= ''
options.filters ?= []
options.icon ?= null
wrappedCallback =
if typeof callback is 'function'
@ -64,6 +65,7 @@ module.exports =
options.title ?= ''
options.defaultPath ?= ''
options.filters ?= []
options.icon ?= null
wrappedCallback =
if typeof callback is 'function'
@ -91,12 +93,12 @@ module.exports =
options.title ?= ''
options.message ?= ''
options.detail ?= ''
options.icon ?= null
binding.showMessageBox options.type,
options.buttons,
String(options.title),
String(options.message),
String(options.detail),
[options.title, options.message, options.detail],
options.icon,
window,
callback