show titlebar cc enabled in fllscrn macos (#167094)

fixes #153221
This commit is contained in:
SteVen Batten 2022-11-23 12:32:23 -08:00 committed by GitHub
parent 4266e06e07
commit afe8a3475b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1073,6 +1073,11 @@ export abstract class Layout extends Disposable implements IWorkbenchLayoutServi
return false;
}
// with the command center enabled, we should always show
if (this.configurationService.getValue<boolean>('window.commandCenter')) {
return true;
}
// macOS desktop does not need a title bar when full screen
if (isMacintosh && isNative) {
return !this.state.runtime.fullscreen;
@ -1083,11 +1088,6 @@ export abstract class Layout extends Disposable implements IWorkbenchLayoutServi
return true;
}
// with the command center enabled, we should always show
if (this.configurationService.getValue<boolean>('window.commandCenter')) {
return true;
}
// if WCO is visible, we have to show the title bar
if (isWCOVisible()) {
return true;