mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Rename delegate for accuracy
Co-authored-by: Janne Savolainen <janne.savolainen@live.fi> Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
This commit is contained in:
parent
e729babf3d
commit
7fc73af3c7
@ -3,7 +3,7 @@
|
||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
||||
*/
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import { onRootFrameRenderInjectionToken } from "../start-main-application/on-root-frame-render/on-root-frame-render-injection-token";
|
||||
import { afterRootFrameIsReadyInjectionToken } from "../start-main-application/after-root-frame-is-ready/after-root-frame-is-ready-injection-token";
|
||||
import catalogSyncToRendererInjectable from "./catalog-sync-to-renderer.injectable";
|
||||
|
||||
const startCatalogSyncInjectable = getInjectable({
|
||||
@ -19,7 +19,7 @@ const startCatalogSyncInjectable = getInjectable({
|
||||
};
|
||||
},
|
||||
|
||||
injectionToken: onRootFrameRenderInjectionToken,
|
||||
injectionToken: afterRootFrameIsReadyInjectionToken,
|
||||
});
|
||||
|
||||
export default startCatalogSyncInjectable;
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import { ipcMainOn } from "../../../../common/ipc";
|
||||
import { IpcRendererNavigationEvents } from "../../../../renderer/navigation/events";
|
||||
import { onRootFrameRenderInjectionToken } from "../../on-root-frame-render/on-root-frame-render-injection-token";
|
||||
import { afterRootFrameIsReadyInjectionToken } from "../../after-root-frame-is-ready/after-root-frame-is-ready-injection-token";
|
||||
import { afterApplicationIsReadyInjectionToken } from "../after-application-is-ready-injection-token";
|
||||
import { runManyFor } from "../../run-many-for";
|
||||
|
||||
@ -16,7 +16,7 @@ const setupListenerForRootFrameRenderingInjectable = getInjectable({
|
||||
const runMany = runManyFor(di);
|
||||
|
||||
const runOnRootFrameRender = runMany(
|
||||
onRootFrameRenderInjectionToken,
|
||||
afterRootFrameIsReadyInjectionToken,
|
||||
);
|
||||
|
||||
return {
|
||||
|
||||
@ -5,6 +5,6 @@
|
||||
import { getInjectionToken } from "@ogre-tools/injectable";
|
||||
import type { Runnable } from "../run-many-for";
|
||||
|
||||
export const onRootFrameRenderInjectionToken = getInjectionToken<Runnable>({
|
||||
id: "on-root-frame-render",
|
||||
export const afterRootFrameIsReadyInjectionToken = getInjectionToken<Runnable>({
|
||||
id: "after-root-frame-is-ready",
|
||||
});
|
||||
@ -3,7 +3,7 @@
|
||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
||||
*/
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import { onRootFrameRenderInjectionToken } from "../on-root-frame-render-injection-token";
|
||||
import { afterRootFrameIsReadyInjectionToken } from "../after-root-frame-is-ready-injection-token";
|
||||
import lensProtocolRouterMainInjectable from "../../../protocol-handler/lens-protocol-router-main/lens-protocol-router-main.injectable";
|
||||
import { runInAction } from "mobx";
|
||||
|
||||
@ -23,7 +23,7 @@ const flagRendererAsLoaded = getInjectable({
|
||||
};
|
||||
},
|
||||
|
||||
injectionToken: onRootFrameRenderInjectionToken,
|
||||
injectionToken: afterRootFrameIsReadyInjectionToken,
|
||||
});
|
||||
|
||||
export default flagRendererAsLoaded;
|
||||
@ -3,7 +3,7 @@
|
||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
||||
*/
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import { onRootFrameRenderInjectionToken } from "../on-root-frame-render-injection-token";
|
||||
import { afterRootFrameIsReadyInjectionToken } from "../after-root-frame-is-ready-injection-token";
|
||||
import directoryForKubeConfigsInjectable from "../../../../common/app-paths/directory-for-kube-configs/directory-for-kube-configs.injectable";
|
||||
import kubeconfigSyncManagerInjectable from "../../../catalog-sources/kubeconfig-sync-manager/kubeconfig-sync-manager.injectable";
|
||||
import ensureDirInjectable from "../../../../common/fs/ensure-dir.injectable";
|
||||
@ -25,7 +25,7 @@ const startKubeconfigSyncInjectable = getInjectable({
|
||||
};
|
||||
},
|
||||
|
||||
injectionToken: onRootFrameRenderInjectionToken,
|
||||
injectionToken: afterRootFrameIsReadyInjectionToken,
|
||||
});
|
||||
|
||||
export default startKubeconfigSyncInjectable;
|
||||
@ -3,7 +3,7 @@
|
||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
||||
*/
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import { onRootFrameRenderInjectionToken } from "../on-root-frame-render-injection-token";
|
||||
import { afterRootFrameIsReadyInjectionToken } from "../after-root-frame-is-ready-injection-token";
|
||||
import { startUpdateChecking } from "../../../app-updater";
|
||||
import isAutoUpdateEnabledInjectable from "../../../is-auto-update-enabled.injectable";
|
||||
|
||||
@ -23,7 +23,7 @@ const startUpdateCheckingInjectable = getInjectable({
|
||||
|
||||
causesSideEffects: true,
|
||||
|
||||
injectionToken: onRootFrameRenderInjectionToken,
|
||||
injectionToken: afterRootFrameIsReadyInjectionToken,
|
||||
});
|
||||
|
||||
export default startUpdateCheckingInjectable;
|
||||
Loading…
Reference in New Issue
Block a user