1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

fix macos shutdown

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen 2020-12-17 20:45:35 +02:00
parent 495cc5fc53
commit dcb8470904

View File

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