Add support for checkbox with dialog.showMessageBox
This adds the `checkboxLabel` and `checkboxChecked` options to display a checkbox in the message box. Fixes #6048.
This commit is contained in:
parent
9163b601a4
commit
c8c11e68c6
10 changed files with 155 additions and 61 deletions
|
@ -59,6 +59,10 @@ describe('dialog module', () => {
|
|||
assert.throws(() => {
|
||||
dialog.showMessageBox({detail: 3.14})
|
||||
}, /Detail must be a string/)
|
||||
|
||||
assert.throws(() => {
|
||||
dialog.showMessageBox({checkboxLabel: false})
|
||||
}, /checkboxLabel must be a string/)
|
||||
})
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue