mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
* add no-unused-vars and no-unused-imports * added quotes: double, and remove ignore pattern * move itif and describeif into utils Signed-off-by: Sebastian Malton <sebastian@malton.name>
18 lines
573 B
TypeScript
18 lines
573 B
TypeScript
import { app } from "electron";
|
|
import { WindowManager } from "./window-manager";
|
|
import { appEventBus } from "../common/event-bus";
|
|
import { ClusterManager } from "./cluster-manager";
|
|
import logger from "./logger";
|
|
|
|
|
|
export function exitApp() {
|
|
const windowManager = WindowManager.getInstance<WindowManager>();
|
|
const clusterManager = ClusterManager.getInstance<ClusterManager>();
|
|
appEventBus.emit({ name: "service", action: "close" });
|
|
windowManager.hide();
|
|
clusterManager.stop();
|
|
logger.info("SERVICE:QUIT");
|
|
setTimeout(() => {
|
|
app.exit();
|
|
}, 1000);
|
|
} |