fix: fullscreen crashing with roundedCorners: false
(#35421)
This commit is contained in:
parent
70d6cbfb44
commit
a3a9463024
3 changed files with 11 additions and 2 deletions
|
@ -1450,6 +1450,11 @@ describe('BrowserWindow module', () => {
|
|||
expect(w.fullScreen).to.be.true();
|
||||
});
|
||||
|
||||
it('does not go fullscreen if roundedCorners are enabled', async () => {
|
||||
w = new BrowserWindow({ frame: false, roundedCorners: false, fullscreen: true });
|
||||
expect(w.fullScreen).to.be.false();
|
||||
});
|
||||
|
||||
it('can be changed', () => {
|
||||
w.fullScreen = false;
|
||||
expect(w.fullScreen).to.be.false();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue