From 7f0eb07cc5620da40bf7e784186b18982b869a17 Mon Sep 17 00:00:00 2001 From: Janne Savolainen Date: Wed, 27 Apr 2022 17:50:27 +0300 Subject: [PATCH] Ensure that LensProxy is setupped before starting the main window Co-authored-by: Mikko Aspiala Signed-off-by: Janne Savolainen --- .../implementations/start-main-window.injectable.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/start-main-application/after-application-is-ready/implementations/start-main-window.injectable.ts b/src/main/start-main-application/after-application-is-ready/implementations/start-main-window.injectable.ts index 319b337f56..f7d5c0fff7 100644 --- a/src/main/start-main-application/after-application-is-ready/implementations/start-main-window.injectable.ts +++ b/src/main/start-main-application/after-application-is-ready/implementations/start-main-window.injectable.ts @@ -7,6 +7,7 @@ import windowManagerInjectable from "../../../window-manager.injectable"; import loggerInjectable from "../../../../common/logger.injectable"; import { afterApplicationIsReadyInjectionToken } from "../after-application-is-ready-injection-token"; import shouldStartHiddenInjectable from "../../../electron-app/features/should-start-hidden.injectable"; +import setupLensProxyInjectable from "./setup-lens-proxy.injectable"; const startMainWindowInjectable = getInjectable({ id: "start-main-window", @@ -17,6 +18,8 @@ const startMainWindowInjectable = getInjectable({ const shouldStartHidden = di.inject(shouldStartHiddenInjectable); return { + runAfter: di.inject(setupLensProxyInjectable), + run: async () => { logger.info("🖥️ Starting WindowManager");