Add noLink option for showMessageBox

This commit is contained in:
Cheng Zhao 2015-07-23 17:20:43 +08:00
parent 1578d2fda9
commit cc2a9f617d
4 changed files with 19 additions and 6 deletions

View file

@ -11,6 +11,9 @@ fileDialogProperties =
messageBoxTypes = ['none', 'info', 'warning', 'error', 'question']
messageBoxOptions =
noLink: 1 << 0
parseArgs = (window, options, callback) ->
unless window is null or window?.constructor is BrowserWindow
# Shift.
@ -101,10 +104,12 @@ module.exports =
options.cancelId = i
break
flags = if options.noLink then messageBoxOptions.noLink else 0
binding.showMessageBox messageBoxType,
options.buttons,
options.cancelId,
0,
flags,
options.title,
options.message,
options.detail,