From dcb84709048acc6997b1549c283791cb22483f0f Mon Sep 17 00:00:00 2001 From: Jari Kolehmainen Date: Thu, 17 Dec 2020 20:45:35 +0200 Subject: [PATCH] fix macos shutdown Signed-off-by: Jari Kolehmainen --- src/main/index.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/index.ts b/src/main/index.ts index e3a49ccaf9..8da9be1a01 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -55,14 +55,14 @@ app.on("second-instance", () => { windowManager?.ensureMainWindow(); }); -powerMonitor.on("shutdown", () => { - app.exit(); -}); - app.on("ready", async () => { logger.info(`🚀 Starting Lens from "${workingDir}"`); await shellSync(); + powerMonitor.on("shutdown", () => { + app.exit(); + }); + const updater = new AppUpdater(); updater.start();