Add noLink option for showMessageBox
This commit is contained in:
parent
1578d2fda9
commit
cc2a9f617d
4 changed files with 19 additions and 6 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue