fix: crash when restoring minimized hidden window (#21813)
This commit is contained in:
parent
bf6e4b1247
commit
42d8933d66
3 changed files with 29 additions and 0 deletions
|
@ -2858,6 +2858,13 @@ describe('BrowserWindow module', () => {
|
|||
w.restore()
|
||||
expectBoundsEqual(w.getSize(), initialSize)
|
||||
})
|
||||
|
||||
it('does not crash when restoring hidden minimized window', () => {
|
||||
const w = new BrowserWindow({})
|
||||
w.minimize()
|
||||
w.hide()
|
||||
w.show()
|
||||
})
|
||||
})
|
||||
|
||||
describe('BrowserWindow.unmaximize()', () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue