fix: close all open sheets before closing window on macOS (#43706)
This commit is contained in:
parent
1d3b1284c4
commit
c8895d0547
2 changed files with 12 additions and 1 deletions
|
@ -117,6 +117,14 @@ describe('BrowserWindow module', () => {
|
|||
await closed;
|
||||
});
|
||||
|
||||
it('should work if called when multiple messageBoxes are showing', async () => {
|
||||
const closed = once(w, 'closed');
|
||||
dialog.showMessageBox(w, { message: 'Hello Error' });
|
||||
dialog.showMessageBox(w, { message: 'Hello Error' });
|
||||
w.close();
|
||||
await closed;
|
||||
});
|
||||
|
||||
it('closes window without rounded corners', async () => {
|
||||
await closeWindow(w);
|
||||
w = new BrowserWindow({ show: false, frame: false, roundedCorners: false });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue