Brought back the menu.

With a restricted set of items.

Signed-off-by: jbicker <jan.bicker@typefox.io>
This commit is contained in:
jbicker
2019-07-12 10:40:41 +02:00
parent 35086ca1a1
commit 2a0273c771
11 changed files with 162 additions and 38 deletions

View File

@@ -5,14 +5,7 @@ import { FrontendApplication } from "@theia/core/lib/browser";
@injectable()
export class ArduinoMenuContribution extends BrowserMenuBarContribution {
onStart(app: FrontendApplication): void {
if (this.isProMode()) {
const menu = this.factory.createMenuBar();
app.shell.addWidget(menu, { area: 'top' });
}
}
protected isProMode(): boolean {
// TODO ask for pro preference
return false;
const menu = this.factory.createMenuBar();
app.shell.addWidget(menu, { area: 'top' });
}
}