Skip to content

Commit

Permalink
add setting to disable icon tray option for darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
csduarte authored and David Meza committed Oct 12, 2017
1 parent 17da72b commit 5e33705
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/browser/components/SettingsPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,8 @@ const SettingsPage = createReactClass({
</Checkbox>);
}

if (process.platform === 'darwin' || process.platform === 'linux') {
var shouldShowDarwinTray = this.state.allowDarwinIconTray && process.platform === 'darwin';
if (process.platform === 'linux' || shouldShowDarwinTray) {
options.push(
<Checkbox
key='inputShowTrayIcon'
Expand Down
6 changes: 4 additions & 2 deletions src/common/config/base.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"spellCheckerLocale": "en-US",
"helpLink": "https://docs.mattermost.com/help/apps/desktop-guide.html",
"enableMultiTeams": true,
"enableServerManagement": true
"enableServerManagement": true,
"allowDarwinIconTray": true
},
"1": {
"teams": [],
Expand All @@ -29,6 +30,7 @@
"spellCheckerLocale": "en-US",
"helpLink": "https://docs.mattermost.com/help/apps/desktop-guide.html",
"enableMultiTeams": true,
"enableServerManagement": true
"enableServerManagement": true,
"allowDarwinIconTray": true
}
}

0 comments on commit 5e33705

Please sign in to comment.