Added basic support for multiple windows in windows 10

This commit is contained in:
Austin Warren
2019-07-16 20:36:24 -07:00
parent 735fa76239
commit a735c910d5
4 changed files with 7 additions and 2 deletions

View File

@@ -147,6 +147,10 @@ export class Window {
this.window.webContents.send(event, ...args)
}
isDestroyed() {
return !this.window || this.window.isDestroyed();
}
private setupWindowManagement () {
this.window.on('show', () => {
this.visible.next(true)