Add cancelId option for showMessageBox
This commit is contained in:
parent
083d0b8b60
commit
b158427271
6 changed files with 27 additions and 10 deletions
|
@ -92,9 +92,11 @@ module.exports =
|
|||
options.message ?= ''
|
||||
options.detail ?= ''
|
||||
options.icon ?= null
|
||||
options.cancelId ?= 0
|
||||
|
||||
binding.showMessageBox messageBoxType,
|
||||
options.buttons,
|
||||
options.cancelId,
|
||||
[options.title, options.message, options.detail],
|
||||
options.icon,
|
||||
window,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue