Skip to content

Commit b21d0a4

Browse files
committed
force top panel to be visible
1 parent 69023b8 commit b21d0a4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

arduino-ide-extension/src/browser/theia/core/application-shell.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import {
99
} from '@theia/core/lib/browser/connection-status-service';
1010
import {
1111
ApplicationShell as TheiaApplicationShell,
12+
Panel,
1213
Widget,
1314
} from '@theia/core/lib/browser';
1415
import { Sketch } from '../../../common/protocol';
@@ -72,6 +73,13 @@ export class ApplicationShell extends TheiaApplicationShell {
7273
return super.addWidget(widget, { ...options, ref });
7374
}
7475

76+
// Avoid hiding top panel as we use it for arduino toolbar
77+
protected createTopPanel(): Panel {
78+
const topPanel = super.createTopPanel();
79+
topPanel.show();
80+
return topPanel;
81+
}
82+
7583
async saveAll(): Promise<void> {
7684
if (
7785
this.connectionStatusService.currentStatus === ConnectionStatus.OFFLINE

0 commit comments

Comments
 (0)