diff --git a/app/common/commonMenu.js b/app/common/commonMenu.js index 28e94e572e7..a4a97c7f4e4 100644 --- a/app/common/commonMenu.js +++ b/app/common/commonMenu.js @@ -344,17 +344,6 @@ module.exports.bookmarksToolbarMenuItem = () => { } } -module.exports.showTabPreviewsMenuItem = () => { - return { - label: locale.translation('showTabPreviews'), - type: 'checkbox', - checked: getSetting(settings.SHOW_TAB_PREVIEWS), - click: (item, focusedWindow) => { - appActions.changeSetting(settings.SHOW_TAB_PREVIEWS, !getSetting(settings.SHOW_TAB_PREVIEWS)) - } - } -} - module.exports.autoHideMenuBarMenuItem = () => { const autoHideMenuBar = getSetting(settings.AUTO_HIDE_MENU) return { diff --git a/app/extensions/brave/locales/en-US/menu.properties b/app/extensions/brave/locales/en-US/menu.properties index 9335f10e72d..84a42c1d0b5 100644 --- a/app/extensions/brave/locales/en-US/menu.properties +++ b/app/extensions/brave/locales/en-US/menu.properties @@ -173,4 +173,3 @@ downloadItemDelete=Delete Download downloadItemClear=Clear Download downloadToolbarHide=Hide downloads bar downloadItemClearCompleted=Clear completed downloads -showTabPreviews=Show Tab Previews diff --git a/app/locale.js b/app/locale.js index c9b40611c20..964a9d3f4d5 100644 --- a/app/locale.js +++ b/app/locale.js @@ -180,7 +180,6 @@ var rendererIdentifiers = function () { 'learnSpelling', 'ignoreSpelling', 'lookupSelection', - 'showTabPreviews', // Other identifiers 'aboutBlankTitle', 'urlCopied', diff --git a/app/renderer/components/tabs/tabs.js b/app/renderer/components/tabs/tabs.js index 9b9db2532a9..f74829057fe 100644 --- a/app/renderer/components/tabs/tabs.js +++ b/app/renderer/components/tabs/tabs.js @@ -132,8 +132,7 @@ class Tabs extends ImmutableComponent { const index = this.props.previewTabPageIndex !== undefined ? this.props.previewTabPageIndex : this.props.tabPageIndex return
+ onMouseLeave={this.props.fixTabWidth ? this.onMouseLeave : null}> 0 } - )) - - return menuUtil.sanitizeTemplateItems(template) -} - function getMisspelledSuggestions (selection, isMisspelled, suggestions) { const hasSelection = selection.length > 0 const template = [] @@ -1392,13 +1367,6 @@ function onTabContextMenu (frameProps, e) { tabMenu.destroy() } -function onTabsBarContextMenu (framePropsList, e) { - e.stopPropagation() - const tabsMenu = Menu.buildFromTemplate(tabsBarTemplateInit(framePropsList)) - tabsMenu.popup(getCurrentWindow()) - tabsMenu.destroy() -} - function onNewTabContextMenu (target) { const menuTemplate = [ CommonMenu.newTabMenuItem(), @@ -1555,7 +1523,6 @@ module.exports = { onFlashContextMenu, onMainContextMenu, onTabContextMenu, - onTabsBarContextMenu, onNewTabContextMenu, onTabsToolbarContextMenu, onDownloadsToolbarContextMenu,