mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
27 lines
888 B
TypeScript
27 lines
888 B
TypeScript
/**
|
|
* Copyright (c) OpenLens Authors. All rights reserved.
|
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
|
*/
|
|
import { getInjectable } from "@ogre-tools/injectable";
|
|
import reactiveTrayMenuItemsInjectable from "./reactive-tray-menu-items.injectable";
|
|
import { beforeQuitOfBackEndInjectionToken } from "../../start-main-application/runnable-tokens/before-quit-of-back-end-injection-token";
|
|
|
|
const stopReactiveTrayMenuItemsInjectable = getInjectable({
|
|
id: "stop-reactive-tray-menu-items",
|
|
|
|
instantiate: (di) => {
|
|
const reactiveTrayMenuItems = di.inject(reactiveTrayMenuItemsInjectable);
|
|
|
|
return {
|
|
id: "stop-reactive-tray-menu-items",
|
|
run: async () => {
|
|
await reactiveTrayMenuItems.stop();
|
|
},
|
|
};
|
|
},
|
|
|
|
injectionToken: beforeQuitOfBackEndInjectionToken,
|
|
});
|
|
|
|
export default stopReactiveTrayMenuItemsInjectable;
|