Skip to content

Commit afe8a34

Browse files
authored
show titlebar cc enabled in fllscrn macos (microsoft#167094)
fixes microsoft#153221
1 parent 4266e06 commit afe8a34

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/vs/workbench/browser/layout.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1073,6 +1073,11 @@ export abstract class Layout extends Disposable implements IWorkbenchLayoutServi
10731073
return false;
10741074
}
10751075

1076+
// with the command center enabled, we should always show
1077+
if (this.configurationService.getValue<boolean>('window.commandCenter')) {
1078+
return true;
1079+
}
1080+
10761081
// macOS desktop does not need a title bar when full screen
10771082
if (isMacintosh && isNative) {
10781083
return !this.state.runtime.fullscreen;
@@ -1083,11 +1088,6 @@ export abstract class Layout extends Disposable implements IWorkbenchLayoutServi
10831088
return true;
10841089
}
10851090

1086-
// with the command center enabled, we should always show
1087-
if (this.configurationService.getValue<boolean>('window.commandCenter')) {
1088-
return true;
1089-
}
1090-
10911091
// if WCO is visible, we have to show the title bar
10921092
if (isWCOVisible()) {
10931093
return true;

0 commit comments

Comments
 (0)