-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add patch hiding custom titlebar when set to compact mode
- Loading branch information
1 parent
0787564
commit 25911be
Showing
1 changed file
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
diff --git a/src/vs/workbench/browser/layout.ts b/src/vs/workbench/browser/layout.ts | ||
index 9151c945a6c..88393fffc8d 100644 | ||
--- a/src/vs/workbench/browser/layout.ts | ||
+++ b/src/vs/workbench/browser/layout.ts | ||
@@ -981,6 +981,10 @@ export abstract class Layout extends Disposable implements IWorkbenchLayoutServi | ||
|
||
private shouldShowTitleBar(): boolean { | ||
|
||
+ if (this.configurationService.getValue<string>("window.menuBarVisibility") === "compact") { | ||
+ return false | ||
+ } | ||
+ | ||
// Using the native title bar, don't ever show the custom one | ||
if (getTitleBarStyle(this.configurationService) === 'native') { | ||
return false; |