fix: close all open sheets before closing window on macOS (#43706)

This commit is contained in:
John Beutner 2024-09-25 07:23:49 -04:00 committed by GitHub
parent 1d3b1284c4
commit c8895d0547
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 1 deletions

View file

@ -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 });