[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:
@@ -9,9 +9,9 @@
|
|||||||
const defaultPreferences = {
|
const defaultPreferences = {
|
||||||
version: 2,
|
version: 2,
|
||||||
teams: [],
|
teams: [],
|
||||||
showTrayIcon: false,
|
showTrayIcon: true,
|
||||||
trayIconTheme: 'light',
|
trayIconTheme: 'light',
|
||||||
minimizeToTray: false,
|
minimizeToTray: true,
|
||||||
notifications: {
|
notifications: {
|
||||||
flashWindow: 2,
|
flashWindow: 2,
|
||||||
bounceIcon: true,
|
bounceIcon: true,
|
||||||
|
@@ -1145,10 +1145,7 @@ function getDeeplinkingURL(args) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function shouldShowTrayIcon() {
|
function shouldShowTrayIcon() {
|
||||||
if (process.platform === 'win32') {
|
if (config.showTrayIcon === true || process.platform === 'win32') {
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if (['darwin', 'linux'].includes(process.platform) && config.showTrayIcon === true) {
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
Reference in New Issue
Block a user