diff --git a/src/components/views/settings/tabs/user/PreferencesUserSettingsTab.js b/src/components/views/settings/tabs/user/PreferencesUserSettingsTab.js index 5b0b5dbdcf..6fc854c155 100644 --- a/src/components/views/settings/tabs/user/PreferencesUserSettingsTab.js +++ b/src/components/views/settings/tabs/user/PreferencesUserSettingsTab.js @@ -85,21 +85,18 @@ export default class PreferencesUserSettingsTab extends React.Component { const autoLaunchSupported = await platform.supportsAutoLaunch(); let autoLaunch = false; - if (autoLaunchSupported) { autoLaunch = await platform.getAutoLaunchEnabled(); } const alwaysShowMenuBarSupported = await platform.supportsAutoHideMenuBar(); let alwaysShowMenuBar = true; - if (alwaysShowMenuBarSupported) { alwaysShowMenuBar = !await platform.getAutoHideMenuBarEnabled(); } const minimizeToTraySupported = await platform.supportsMinimizeToTray(); let minimizeToTray = true; - if (minimizeToTraySupported) { minimizeToTray = await platform.getMinimizeToTrayEnabled(); } @@ -168,7 +165,7 @@ export default class PreferencesUserSettingsTab extends React.Component { minimizeToTrayOption = ; + label={_t('Show tray icon and minimize window to it on close')} />; } return ( diff --git a/src/i18n/strings/en_EN.json b/src/i18n/strings/en_EN.json index 442d08887e..524a8a1abf 100644 --- a/src/i18n/strings/en_EN.json +++ b/src/i18n/strings/en_EN.json @@ -640,7 +640,7 @@ "Notifications": "Notifications", "Start automatically after system login": "Start automatically after system login", "Always show the window menu bar": "Always show the window menu bar", - "Close button should minimize window to tray": "Close button should minimize window to tray", + "Show tray icon and minimize window to it on close": "Show tray icon and minimize window to it on close", "Preferences": "Preferences", "Composer": "Composer", "Timeline": "Timeline",