[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:
parent
34e1a030b9
commit
34af973316
|
@ -9,9 +9,9 @@
|
|||
const defaultPreferences = {
|
||||
version: 2,
|
||||
teams: [],
|
||||
showTrayIcon: false,
|
||||
showTrayIcon: true,
|
||||
trayIconTheme: 'light',
|
||||
minimizeToTray: false,
|
||||
minimizeToTray: true,
|
||||
notifications: {
|
||||
flashWindow: 2,
|
||||
bounceIcon: true,
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue