PM-7392 - Main.ts - fix circ dep issue.
This commit is contained in:
parent
1db1728bd2
commit
dbbf100187
|
@ -183,9 +183,7 @@ export class Main {
|
||||||
new ElectronMainMessagingService(this.windowMain),
|
new ElectronMainMessagingService(this.windowMain),
|
||||||
);
|
);
|
||||||
|
|
||||||
messageSubject.asObservable().subscribe((message) => {
|
// TODO: figure out circular dependency issue here with state service
|
||||||
this.messagingMain.onMessage(message);
|
|
||||||
});
|
|
||||||
|
|
||||||
this.tokenService = new TokenService(
|
this.tokenService = new TokenService(
|
||||||
singleUserStateProvider,
|
singleUserStateProvider,
|
||||||
|
@ -222,6 +220,12 @@ export class Main {
|
||||||
|
|
||||||
this.desktopSettingsService = new DesktopSettingsService(stateProvider);
|
this.desktopSettingsService = new DesktopSettingsService(stateProvider);
|
||||||
|
|
||||||
|
this.messagingMain = new MessagingMain(this, this.stateService, this.desktopSettingsService);
|
||||||
|
|
||||||
|
messageSubject.asObservable().subscribe((message) => {
|
||||||
|
this.messagingMain.onMessage(message);
|
||||||
|
});
|
||||||
|
|
||||||
const biometricStateService = new DefaultBiometricStateService(stateProvider);
|
const biometricStateService = new DefaultBiometricStateService(stateProvider);
|
||||||
|
|
||||||
this.windowMain = new WindowMain(
|
this.windowMain = new WindowMain(
|
||||||
|
@ -233,7 +237,6 @@ export class Main {
|
||||||
(arg) => this.processDeepLink(arg),
|
(arg) => this.processDeepLink(arg),
|
||||||
(win) => this.trayMain.setupWindowListeners(win),
|
(win) => this.trayMain.setupWindowListeners(win),
|
||||||
);
|
);
|
||||||
this.messagingMain = new MessagingMain(this, this.stateService, this.desktopSettingsService);
|
|
||||||
this.updaterMain = new UpdaterMain(this.i18nService, this.windowMain);
|
this.updaterMain = new UpdaterMain(this.i18nService, this.windowMain);
|
||||||
this.trayMain = new TrayMain(this.windowMain, this.i18nService, this.desktopSettingsService);
|
this.trayMain = new TrayMain(this.windowMain, this.i18nService, this.desktopSettingsService);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue