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:
parent
00a5e54ce8
commit
7f0eb07cc5
@ -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");
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user