[MM-25789] - Update default settings for new installations (#1376)

* [MM-25789] - Update default settings for new installations

* Update src/main.js

Co-authored-by: Guillermo Vayá <guillermo.vaya@mattermost.com>

* Update src/main.js

Co-authored-by: Guillermo Vayá <guillermo.vaya@mattermost.com>

* Fix linter

Co-authored-by: Nevyana Angelova <nevyangelova@Nevyanas-MacBook-Pro-2.local>
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Co-authored-by: Guillermo Vayá <guillermo.vaya@mattermost.com>
This commit is contained in:
Nev Angelova 2020-09-29 17:31:54 +03:00 committed by GitHub
parent 34e1a030b9
commit 34af973316
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 6 deletions

View file

@ -9,9 +9,9 @@
const defaultPreferences = {
version: 2,
teams: [],
showTrayIcon: false,
showTrayIcon: true,
trayIconTheme: 'light',
minimizeToTray: false,
minimizeToTray: true,
notifications: {
flashWindow: 2,
bounceIcon: true,

View file

@ -1145,10 +1145,7 @@ function getDeeplinkingURL(args) {
}
function shouldShowTrayIcon() {
if (process.platform === 'win32') {
return true;
}
if (['darwin', 'linux'].includes(process.platform) && config.showTrayIcon === true) {
if (config.showTrayIcon === true || process.platform === 'win32') {
return true;
}
return false;