diff --git a/CHANGELOG.md b/CHANGELOG.md index c2f73de501c45..c158c6621db42 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ - [core] added `BreadcrumbsRendererFactory` to constructor arguments of `DockPanelRenderer` and `ToolbarAwareTabBar`. [#9920](https://github.com/eclipse-theia/theia/pull/9920) - [task] `TaskDefinition.properties.required` is now optional to align with the specification [#10015](https://github.com/eclipse-theia/theia/pull/10015) +- [core] `setTopPanelVisibily` renamed to `setTopPanelVisibility` [#10020](https://github.com/eclipse-theia/theia/pull/10020) ## v1.17.2 - 9/1/2021 diff --git a/packages/core/src/browser/shell/application-shell.ts b/packages/core/src/browser/shell/application-shell.ts index f11c36d491c06..30c3271ec5e60 100644 --- a/packages/core/src/browser/shell/application-shell.ts +++ b/packages/core/src/browser/shell/application-shell.ts @@ -264,11 +264,11 @@ export class ApplicationShell extends Widget { if (!environment.electron.is()) { this.corePreferences.ready.then(() => { - this.setTopPanelVisibily(this.corePreferences['window.menuBarVisibility']); + this.setTopPanelVisibility(this.corePreferences['window.menuBarVisibility']); }); this.corePreferences.onPreferenceChanged(preference => { if (preference.preferenceName === 'window.menuBarVisibility') { - this.setTopPanelVisibily(preference.newValue); + this.setTopPanelVisibility(preference.newValue); } }); } @@ -301,7 +301,7 @@ export class ApplicationShell extends Widget { this.activeChanged.connect(updateFocusContextKeys); } - protected setTopPanelVisibily(preference: string): void { + protected setTopPanelVisibility(preference: string): void { const hiddenPreferences = ['compact', 'hidden']; this.topPanel.setHidden(hiddenPreferences.includes(preference)); }