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:
parent
495cc5fc53
commit
dcb8470904
@ -55,14 +55,14 @@ app.on("second-instance", () => {
|
|||||||
windowManager?.ensureMainWindow();
|
windowManager?.ensureMainWindow();
|
||||||
});
|
});
|
||||||
|
|
||||||
powerMonitor.on("shutdown", () => {
|
|
||||||
app.exit();
|
|
||||||
});
|
|
||||||
|
|
||||||
app.on("ready", async () => {
|
app.on("ready", async () => {
|
||||||
logger.info(`🚀 Starting Lens from "${workingDir}"`);
|
logger.info(`🚀 Starting Lens from "${workingDir}"`);
|
||||||
await shellSync();
|
await shellSync();
|
||||||
|
|
||||||
|
powerMonitor.on("shutdown", () => {
|
||||||
|
app.exit();
|
||||||
|
});
|
||||||
|
|
||||||
const updater = new AppUpdater();
|
const updater = new AppUpdater();
|
||||||
|
|
||||||
updater.start();
|
updater.start();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user