提交 2fe13dd8 编写于 作者: B Benjamin Pasero

💄

上级 4ceb6f9d
......@@ -220,7 +220,6 @@ export interface IWindowSettings {
nativeTabs: boolean;
enableMenuBarMnemonics: boolean;
closeWhenEmpty: boolean;
touchbarEnabled: boolean;
}
export enum OpenContext {
......
......@@ -441,7 +441,7 @@ export abstract class TitleControl extends Themable implements ITitleAreaControl
return keybinding ? keybinding.getLabel() : void 0;
}
protected getContextMenuActions(identifier: IEditorIdentifier): IAction[] {
private getContextMenuActions(identifier: IEditorIdentifier): IAction[] {
const { editor, group } = identifier;
// Enablement
......@@ -454,8 +454,8 @@ export abstract class TitleControl extends Themable implements ITitleAreaControl
this.closeEditorAction,
this.closeOtherEditorsAction
];
const tabOptions = this.editorGroupService.getTabOptions();
const tabOptions = this.editorGroupService.getTabOptions();
if (tabOptions.showTabs) {
actions.push(this.closeRightEditorsAction);
}
......
......@@ -352,8 +352,8 @@ export class ElectronWindow extends Themable {
}
const touchbarEnabled = this.configurationService.getValue<boolean>('keyboard.touchbar.enabled');
if (touchbarEnabled === false) {
return;
if (!touchbarEnabled) {
return; // disabled via setting
}
// Dispose old
......
......@@ -588,7 +588,7 @@ const keyboardConfiguration: IConfigurationNode = {
'keyboard.touchbar.enabled': {
'type': 'boolean',
'default': true,
'description': nls.localize('window.touchbar.enabled', "Enables macOS tocuhbar buttons."),
'description': nls.localize('touchbar.enabled', "Enables the macOS touchbar buttons on the keyboard if available."),
'included': OS === OperatingSystem.Macintosh && parseFloat(release()) >= 16 // Minimum: macOS Sierra (10.12.x = darwin 16.x)
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册