Skip to content
This repository has been archived by the owner on Jun 4, 2023. It is now read-only.

Commit

Permalink
fix: closing windows (#503)
Browse files Browse the repository at this point in the history
  • Loading branch information
sentialx authored Jun 23, 2020
1 parent 5776eb5 commit a2acb1d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/windows/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,12 @@ export class AppWindow {

this.win.setBrowserView(null);

Application.instance.dialogs.destroy();

this.viewManager.clear();

if (Application.instance.windows.list.length === 1) {
Application.instance.dialogs.destroy();
}

if (
incognito &&
Application.instance.windows.list.filter((x) => x.incognito).length ===
Expand Down

0 comments on commit a2acb1d

Please sign in to comment.