mirror of
https://github.com/bitwarden/directory-connector
synced 2025-12-20 10:13:23 +00:00
wire up message service to menu
This commit is contained in:
@@ -5,12 +5,14 @@ import {
|
||||
|
||||
import { WindowMain } from 'jslib/electron/window.main';
|
||||
|
||||
import { MenuMain } from './menu.main';
|
||||
|
||||
const SyncInterval = 5 * 60 * 1000; // 5 minutes
|
||||
|
||||
export class MessagingMain {
|
||||
private syncTimeout: NodeJS.Timer;
|
||||
|
||||
constructor(private windowMain: WindowMain) { }
|
||||
constructor(private windowMain: WindowMain, private menuMain: MenuMain) { }
|
||||
|
||||
init() {
|
||||
this.scheduleNextSync();
|
||||
@@ -23,7 +25,7 @@ export class MessagingMain {
|
||||
this.scheduleNextSync();
|
||||
break;
|
||||
case 'updateAppMenu':
|
||||
// this.main.menuMain.updateApplicationMenuState(message.isAuthenticated, message.isLocked);
|
||||
this.menuMain.updateApplicationMenuState(message.isAuthenticated);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user