mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 04:49:35 +00:00
aux window - hide custom title when native title is on (#203464)
This commit is contained in:
parent
fde80ce4fb
commit
6429752b2b
|
@ -14,7 +14,7 @@ import { IInstantiationService } from 'vs/platform/instantiation/common/instanti
|
|||
import { ServiceCollection } from 'vs/platform/instantiation/common/serviceCollection';
|
||||
import { IStorageService } from 'vs/platform/storage/common/storage';
|
||||
import { IThemeService } from 'vs/platform/theme/common/themeService';
|
||||
import { hasCustomTitlebar } from 'vs/platform/window/common/window';
|
||||
import { hasNativeTitlebar } from 'vs/platform/window/common/window';
|
||||
import { IEditorGroupView, IEditorPartsView } from 'vs/workbench/browser/parts/editor/editor';
|
||||
import { EditorPart, IEditorPartUIState } from 'vs/workbench/browser/parts/editor/editorPart';
|
||||
import { IAuxiliaryTitlebarPart } from 'vs/workbench/browser/parts/titlebar/titlebarPart';
|
||||
|
@ -107,7 +107,7 @@ export class AuxiliaryEditorPart {
|
|||
// Titlebar
|
||||
let titlebarPart: IAuxiliaryTitlebarPart | undefined = undefined;
|
||||
let titlebarPartVisible = false;
|
||||
const useCustomTitle = isNative && hasCustomTitlebar(this.configurationService); // custom title in aux windows only enabled in native
|
||||
const useCustomTitle = isNative && !hasNativeTitlebar(this.configurationService); // custom title in aux windows only enabled in native
|
||||
if (useCustomTitle) {
|
||||
titlebarPart = disposables.add(this.titleService.createAuxiliaryTitlebarPart(auxiliaryWindow.container, editorPart));
|
||||
titlebarPartVisible = true;
|
||||
|
|
Loading…
Reference in a new issue