Add "icon" option for message box
This commit is contained in:
parent
513052de87
commit
8457090b18
5 changed files with 64 additions and 29 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue