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();