Add cancelId option for showMessageBox

This commit is contained in:
Cheng Zhao 2015-07-07 18:26:50 +08:00
parent 083d0b8b60
commit b158427271
6 changed files with 27 additions and 10 deletions

View file

@ -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,