mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-10-31 22:18:33 +00:00
fix: menu item enablement issues
Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
This commit is contained in:
@@ -61,6 +61,7 @@ import { BoardsDataStore } from '../boards/boards-data-store';
|
||||
import { NotificationManager } from '../theia/messages/notifications-manager';
|
||||
import { MessageType } from '@theia/core/lib/common/message-service-protocol';
|
||||
import { WorkspaceService } from '../theia/workspace/workspace-service';
|
||||
import { MainMenuManager } from '../../common/main-menu-manager';
|
||||
|
||||
export {
|
||||
Command,
|
||||
@@ -106,6 +107,9 @@ export abstract class Contribution
|
||||
@inject(FrontendApplicationStateService)
|
||||
protected readonly appStateService: FrontendApplicationStateService;
|
||||
|
||||
@inject(MainMenuManager)
|
||||
protected readonly menuManager: MainMenuManager;
|
||||
|
||||
@postConstruct()
|
||||
protected init(): void {
|
||||
this.appStateService.reachedState('ready').then(() => this.onReady());
|
||||
|
||||
Reference in New Issue
Block a user