mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-27 09:35:37 -05:00
Ignore the users title bar settings (#4625)
* ignore the users title bar settings * ignore in more places
This commit is contained in:
@@ -277,10 +277,11 @@ export function getTitleBarStyle(configurationService: IConfigurationService, en
|
||||
return 'native'; // simple fullscreen does not work well with custom title style (https://github.com/Microsoft/vscode/issues/63291)
|
||||
}
|
||||
|
||||
const style = configuration.titleBarStyle;
|
||||
if (style === 'native' || style === 'custom') {
|
||||
return style;
|
||||
}
|
||||
// {{SQL CARBON EDIT}} - Always use native toolbar
|
||||
// const style = configuration.titleBarStyle;
|
||||
// if (style === 'native' || style === 'custom') {
|
||||
// return style;
|
||||
// }
|
||||
}
|
||||
|
||||
// {{SQL CARBON EDIT}} - Always use native toolbar
|
||||
|
||||
@@ -59,11 +59,12 @@ export class SettingsChangeRelauncher extends Disposable implements IWorkbenchCo
|
||||
private onConfigurationChange(config: IConfiguration, notify: boolean): void {
|
||||
let changed = false;
|
||||
|
||||
// {{SQL CARBON EDIT}}
|
||||
// Titlebar style
|
||||
if (config.window && config.window.titleBarStyle !== this.titleBarStyle && (config.window.titleBarStyle === 'native' || config.window.titleBarStyle === 'custom')) {
|
||||
this.titleBarStyle = config.window.titleBarStyle;
|
||||
changed = true;
|
||||
}
|
||||
// if (config.window && config.window.titleBarStyle !== this.titleBarStyle && (config.window.titleBarStyle === 'native' || config.window.titleBarStyle === 'custom')) {
|
||||
// this.titleBarStyle = 'native'; //config.window.titleBarStyle;
|
||||
// changed = true;
|
||||
// }
|
||||
|
||||
// macOS: Native tabs
|
||||
if (isMacintosh && config.window && typeof config.window.nativeTabs === 'boolean' && config.window.nativeTabs !== this.nativeTabs) {
|
||||
|
||||
Reference in New Issue
Block a user