From 7838a10d1aa6c65869cbde909fbdf1d9f629942a Mon Sep 17 00:00:00 2001 From: Ben Creasy Date: Sat, 17 Mar 2018 16:59:25 -0700 Subject: [PATCH] Set showHamburgerMenu enabled by default on Linux (#2666) --- app/config/config-default.js | 5 ++--- lib/components/header.js | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/app/config/config-default.js b/app/config/config-default.js index ae646584de31..e75b7ca38dd6 100644 --- a/app/config/config-default.js +++ b/app/config/config-default.js @@ -51,9 +51,8 @@ module.exports = { // custom CSS to embed in the terminal window termCSS: '', - // set to `true` (without backticks and without quotes) if you're using a - // Linux setup that doesn't show native menus - // default: `false` on Linux, `true` on Windows, ignored on macOS + // if you're using a Linux setup which show native menus, set to false + // default: `true` on Linux, `true` on Windows, ignored on macOS showHamburgerMenu: '', // set to `false` (without backticks and without quotes) if you want to hide the minimize, maximize and close buttons diff --git a/lib/components/header.js b/lib/components/header.js index 6f362982d219..11ac77c2bde4 100644 --- a/lib/components/header.js +++ b/lib/components/header.js @@ -71,7 +71,7 @@ export default class Header extends React.PureComponent { const {showHamburgerMenu, showWindowControls} = this.props; const defaults = { - hambMenu: process.platform === 'win32', // show by default on windows + hambMenu: !this.props.isMac, // show by default on windows and linux winCtrls: !this.props.isMac // show by default on Windows and Linux };