On Windows "Cancel" button is also forced to be canclId
This commit is contained in:
parent
9793473b10
commit
aab78db8b8
2 changed files with 2 additions and 8 deletions
|
@ -101,12 +101,6 @@ module.exports =
|
|||
options.cancelId = i
|
||||
break
|
||||
|
||||
# On OS X the "Cancel" is always get selected when dialog is cancelled.
|
||||
if process.platform is 'darwin'
|
||||
for text, i in options.buttons when text is 'Cancel'
|
||||
options.cancelId = i
|
||||
break
|
||||
|
||||
binding.showMessageBox messageBoxType,
|
||||
options.buttons,
|
||||
options.cancelId,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue