1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Ensure that LensProxy is setupped before starting the main window

Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
Janne Savolainen 2022-04-27 17:50:27 +03:00
parent 00a5e54ce8
commit 7f0eb07cc5
No known key found for this signature in database
GPG Key ID: 8C6CFB2FFFE8F68A

View File

@ -7,6 +7,7 @@ import windowManagerInjectable from "../../../window-manager.injectable";
import loggerInjectable from "../../../../common/logger.injectable"; import loggerInjectable from "../../../../common/logger.injectable";
import { afterApplicationIsReadyInjectionToken } from "../after-application-is-ready-injection-token"; import { afterApplicationIsReadyInjectionToken } from "../after-application-is-ready-injection-token";
import shouldStartHiddenInjectable from "../../../electron-app/features/should-start-hidden.injectable"; import shouldStartHiddenInjectable from "../../../electron-app/features/should-start-hidden.injectable";
import setupLensProxyInjectable from "./setup-lens-proxy.injectable";
const startMainWindowInjectable = getInjectable({ const startMainWindowInjectable = getInjectable({
id: "start-main-window", id: "start-main-window",
@ -17,6 +18,8 @@ const startMainWindowInjectable = getInjectable({
const shouldStartHidden = di.inject(shouldStartHiddenInjectable); const shouldStartHidden = di.inject(shouldStartHiddenInjectable);
return { return {
runAfter: di.inject(setupLensProxyInjectable),
run: async () => { run: async () => {
logger.info("🖥️ Starting WindowManager"); logger.info("🖥️ Starting WindowManager");