diff options
author | 2021-05-12 01:26:51 +0530 | |
---|---|---|
committer | 2021-05-11 21:56:51 +0200 | |
commit | 80d7ef19dbb4271416bd8b5bbf938e180c57e5f3 (patch) | |
tree | ec99db3b3b0727d7ac81c1ead70e17db0c1bb6b3 /src/components | |
parent | Fixing issue with icons being garbled due to misconfiguration of gulp (diff) | |
download | ferdium-app-80d7ef19dbb4271416bd8b5bbf938e180c57e5f3.tar.gz ferdium-app-80d7ef19dbb4271416bd8b5bbf938e180c57e5f3.tar.zst ferdium-app-80d7ef19dbb4271416bd8b5bbf938e180c57e5f3.zip |
Method reuse (#1379)
* Used already exported common functions to avoid the same logic being repeated.
* Use a different package to retrieve the os-name for the 'About Dialog'.
Diffstat (limited to 'src/components')
-rw-r--r-- | src/components/settings/settings/EditSettingsForm.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/components/settings/settings/EditSettingsForm.js b/src/components/settings/settings/EditSettingsForm.js index c1a99e5fc..092411ec2 100644 --- a/src/components/settings/settings/EditSettingsForm.js +++ b/src/components/settings/settings/EditSettingsForm.js | |||
@@ -13,7 +13,7 @@ import PremiumFeatureContainer from '../../ui/PremiumFeatureContainer'; | |||
13 | import Input from '../../ui/Input'; | 13 | import Input from '../../ui/Input'; |
14 | 14 | ||
15 | import { FRANZ_TRANSLATION } from '../../../config'; | 15 | import { FRANZ_TRANSLATION } from '../../../config'; |
16 | import { isMac } from '../../../environment'; | 16 | import { isMac, isWindows } from '../../../environment'; |
17 | 17 | ||
18 | const { | 18 | const { |
19 | systemPreferences, | 19 | systemPreferences, |
@@ -304,14 +304,14 @@ export default @observer class EditSettingsForm extends Component { | |||
304 | <Toggle field={form.$('enableSystemTray')} /> | 304 | <Toggle field={form.$('enableSystemTray')} /> |
305 | <Toggle field={form.$('reloadAfterResume')} /> | 305 | <Toggle field={form.$('reloadAfterResume')} /> |
306 | <Toggle field={form.$('startMinimized')} /> | 306 | <Toggle field={form.$('startMinimized')} /> |
307 | {process.platform === 'win32' && ( | 307 | {isWindows && ( |
308 | <Toggle field={form.$('minimizeToSystemTray')} /> | 308 | <Toggle field={form.$('minimizeToSystemTray')} /> |
309 | )} | 309 | )} |
310 | {process.platform === 'win32' && ( | 310 | {isWindows && ( |
311 | <Toggle field={form.$('closeToSystemTray')} /> | 311 | <Toggle field={form.$('closeToSystemTray')} /> |
312 | )} | 312 | )} |
313 | <Toggle field={form.$('privateNotifications')} /> | 313 | <Toggle field={form.$('privateNotifications')} /> |
314 | {(process.platform === 'win32' || process.platform === 'darwin') && ( | 314 | {(isWindows || isMac) && ( |
315 | <Toggle field={form.$('notifyTaskBarOnMessage')} />)} | 315 | <Toggle field={form.$('notifyTaskBarOnMessage')} />)} |
316 | <Select field={form.$('navigationBarBehaviour')} /> | 316 | <Select field={form.$('navigationBarBehaviour')} /> |
317 | 317 | ||