linux - enable WCO by default if custom title is used (#227065)
parent
2bb6ebbfb1
commit
59bcfc06ba
|
@ -14,7 +14,6 @@ import { NativeParsedArgs } from 'vs/platform/environment/common/argv';
|
|||
import { FileType } from 'vs/platform/files/common/files';
|
||||
import { ILoggerResource, LogLevel } from 'vs/platform/log/common/log';
|
||||
import { PolicyDefinition, PolicyValue } from 'vs/platform/policy/common/policy';
|
||||
import product from 'vs/platform/product/common/product';
|
||||
import { IPartsSplash } from 'vs/platform/theme/common/themeService';
|
||||
import { IUserDataProfile } from 'vs/platform/userDataProfile/common/userDataProfile';
|
||||
import { IAnyWorkspaceIdentifier, ISingleFolderWorkspaceIdentifier, IWorkspaceIdentifier } from 'vs/platform/workspace/common/workspace';
|
||||
|
@ -240,8 +239,6 @@ export function useWindowControlsOverlay(configurationService: IConfigurationSer
|
|||
if (typeof setting === 'boolean') {
|
||||
return setting;
|
||||
}
|
||||
|
||||
return product.quality !== 'stable'; // disable by default in stable for now (TODO@bpasero TODO@benibenj flip when custom title is default)
|
||||
}
|
||||
|
||||
// Default to true.
|
||||
|
|
|
@ -28,7 +28,6 @@ import { NativeWindow } from 'vs/workbench/electron-sandbox/window';
|
|||
import { ModifierKeyEmitter } from 'vs/base/browser/dom';
|
||||
import { applicationConfigurationNodeBase, securityConfigurationNodeBase } from 'vs/workbench/common/configuration';
|
||||
import { MAX_ZOOM_LEVEL, MIN_ZOOM_LEVEL } from 'vs/platform/window/electron-sandbox/window';
|
||||
import product from 'vs/platform/product/common/product';
|
||||
|
||||
// Actions
|
||||
(function registerActions(): void {
|
||||
|
@ -240,7 +239,7 @@ import product from 'vs/platform/product/common/product';
|
|||
'type': 'boolean',
|
||||
'included': isLinux,
|
||||
'markdownDescription': localize('window.experimentalControlOverlay', "Show the native window controls when {0} is set to `custom` (Linux only).", '`#window.titleBarStyle#`'),
|
||||
'default': product.quality !== 'stable', // TODO@bpasero disable by default in stable for now (TODO@bpasero TODO@benibenj flip when custom title is default)
|
||||
'default': true
|
||||
},
|
||||
'window.customTitleBarVisibility': {
|
||||
'type': 'string',
|
||||
|
|
Loading…
Reference in New Issue