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", () => {