Skip to content

Commit

Permalink
Check whether WCO is enabled, fixes #158203 (#158214)
Browse files Browse the repository at this point in the history
  • Loading branch information
rzhao271 authored Aug 16, 2022
1 parent 5a94444 commit 8e42bda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vs/platform/windows/electron-main/windowImpl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1072,7 +1072,7 @@ export class CodeWindow extends Disposable implements ICodeWindow {
}

// Windows: window control overlay (WCO)
if (isWindows) {
if (isWindows && useWindowControlsOverlay(this.configurationService, this.environmentMainService)) {
this._win.setTitleBarOverlay({
color: options.backgroundColor?.trim() === '' ? undefined : options.backgroundColor,
symbolColor: options.foregroundColor?.trim() === '' ? undefined : options.foregroundColor,
Expand Down

0 comments on commit 8e42bda

Please sign in to comment.