Update index.ts

This commit is contained in:
lin onetwo 2021-06-27 15:36:24 +08:00
parent f303ccdba5
commit be3aaca838

View file

@ -8,7 +8,6 @@ import { WindowNames } from '@services/windows/WindowProperties';
import { lazyInject } from '@services/container';
import serviceIdentifier from '@services/serviceIdentifier';
import { IWindowService } from '@services/windows/interface';
import { IViewService } from '@services/view/interface';
import { IPreferenceService } from '@services/preferences/interface';
import i18next from '@services/libs/i18n';
import ContextMenuBuilder from './contextMenuBuilder';
@ -18,7 +17,6 @@ import { InsertMenuAfterSubMenuIndexError } from './error';
@injectable()
export class MenuService implements IMenuService {
@lazyInject(serviceIdentifier.Window) private readonly windowService!: IWindowService;
@lazyInject(serviceIdentifier.View) private readonly viewService!: IViewService;
@lazyInject(serviceIdentifier.Preference) private readonly preferenceService!: IPreferenceService;
private _menuTemplate?: DeferredMenuItemConstructorOptions[];