From c8aa3d7cba8bfbef8501285988ca93ae6ceb2f40 Mon Sep 17 00:00:00 2001 From: srgooglo Date: Mon, 30 Oct 2023 21:25:38 +0100 Subject: [PATCH] fix this --- src/main/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/index.js b/src/main/index.js index 03cd81a..b66b299 100644 --- a/src/main/index.js +++ b/src/main/index.js @@ -102,7 +102,9 @@ class ElectronApp { this.createWindow() app.on("activate", function () { - if (BrowserWindow.getAllWindows().length === 0) createWindow() + if (BrowserWindow.getAllWindows().length === 0) { + this.createWindow() + } }) app.on("window-all-closed", () => {