mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-11-14 12:49:28 +00:00
Brought back the menu.
With a restricted set of items. Signed-off-by: jbicker <jan.bicker@typefox.io>
This commit is contained in:
@@ -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' });
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user