| 58 | }; |
| 59 | |
| 60 | getWindowHeaderConfig() { |
| 61 | const {showHamburgerMenu, showWindowControls} = this.props; |
| 62 | |
| 63 | const defaults = { |
| 64 | hambMenu: !this.props.isMac, // show by default on windows and linux |
| 65 | winCtrls: !this.props.isMac // show by default on Windows and Linux |
| 66 | }; |
| 67 | |
| 68 | // don't allow the user to change defaults on macOS |
| 69 | if (this.props.isMac) { |
| 70 | return defaults; |
| 71 | } |
| 72 | |
| 73 | return { |
| 74 | hambMenu: showHamburgerMenu === '' ? defaults.hambMenu : showHamburgerMenu, |
| 75 | winCtrls: showWindowControls === '' ? defaults.winCtrls : showWindowControls |
| 76 | }; |
| 77 | } |
| 78 | |
| 79 | render() { |
| 80 | const {isMac} = this.props; |