Inline buttons and cancelId values
This commit is contained in:
parent
3ac9858726
commit
72e559458f
1 changed files with 2 additions and 5 deletions
|
@ -8,17 +8,14 @@ window.onload = function () {
|
|||
|
||||
window.confirm = function (message, title) {
|
||||
const {dialog} = require('electron').remote
|
||||
let buttons, cancelId
|
||||
if (title == null) {
|
||||
title = ''
|
||||
}
|
||||
buttons = ['OK', 'Cancel']
|
||||
cancelId = 1
|
||||
return !dialog.showMessageBox({
|
||||
message: message,
|
||||
title: title,
|
||||
buttons: buttons,
|
||||
cancelId: cancelId
|
||||
buttons: ['OK', 'Cancel'],
|
||||
cancelId: 1
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue