diff options
author | 2022-11-03 22:07:18 +0530 | |
---|---|---|
committer | 2022-11-03 22:07:18 +0530 | |
commit | bf1fc5f87d677a6aa1edea8cd32e03dc63dd97c1 (patch) | |
tree | ced23932b80bb53c7cc2473d63e4351654490b1c /src/containers/settings | |
parent | fix: fix contextMenu not visible (diff) | |
download | ferdium-app-bf1fc5f87d677a6aa1edea8cd32e03dc63dd97c1.tar.gz ferdium-app-bf1fc5f87d677a6aa1edea8cd32e03dc63dd97c1.tar.zst ferdium-app-bf1fc5f87d677a6aa1edea8cd32e03dc63dd97c1.zip |
feat: bring sentry back (#736)
Diffstat (limited to 'src/containers/settings')
-rw-r--r-- | src/containers/settings/EditSettingsScreen.tsx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/containers/settings/EditSettingsScreen.tsx b/src/containers/settings/EditSettingsScreen.tsx index 0d8a0a758..91752ad43 100644 --- a/src/containers/settings/EditSettingsScreen.tsx +++ b/src/containers/settings/EditSettingsScreen.tsx | |||
@@ -112,6 +112,10 @@ const messages = defineMessages({ | |||
112 | id: 'settings.app.form.searchEngine', | 112 | id: 'settings.app.form.searchEngine', |
113 | defaultMessage: 'Search engine', | 113 | defaultMessage: 'Search engine', |
114 | }, | 114 | }, |
115 | sentry: { | ||
116 | id: 'settings.app.form.sentry', | ||
117 | defaultMessage: 'Send telemetry data', | ||
118 | }, | ||
115 | translatorEngine: { | 119 | translatorEngine: { |
116 | id: 'settings.app.form.translatorEngine', | 120 | id: 'settings.app.form.translatorEngine', |
117 | defaultMessage: 'Translator Engine', | 121 | defaultMessage: 'Translator Engine', |
@@ -366,6 +370,7 @@ class EditSettingsScreen extends Component<EditSettingsScreenProps> { | |||
366 | searchEngine: settingsData.searchEngine, | 370 | searchEngine: settingsData.searchEngine, |
367 | translatorEngine: settingsData.translatorEngine, | 371 | translatorEngine: settingsData.translatorEngine, |
368 | translatorLanguage: settingsData.translatorLanguage, | 372 | translatorLanguage: settingsData.translatorLanguage, |
373 | sentry: Boolean(settingsData.sentry), | ||
369 | hibernateOnStartup: Boolean(settingsData.hibernateOnStartup), | 374 | hibernateOnStartup: Boolean(settingsData.hibernateOnStartup), |
370 | hibernationStrategy: Number(settingsData.hibernationStrategy), | 375 | hibernationStrategy: Number(settingsData.hibernationStrategy), |
371 | wakeUpStrategy: Number(settingsData.wakeUpStrategy), | 376 | wakeUpStrategy: Number(settingsData.wakeUpStrategy), |
@@ -632,6 +637,11 @@ class EditSettingsScreen extends Component<EditSettingsScreenProps> { | |||
632 | default: DEFAULT_APP_SETTINGS.translatorLanguage, | 637 | default: DEFAULT_APP_SETTINGS.translatorLanguage, |
633 | options: translatorLanguages, | 638 | options: translatorLanguages, |
634 | }, | 639 | }, |
640 | sentry: { | ||
641 | label: intl.formatMessage(messages.sentry), | ||
642 | value: settings.all.app.sentry, | ||
643 | default: DEFAULT_APP_SETTINGS.sentry, | ||
644 | }, | ||
635 | hibernateOnStartup: { | 645 | hibernateOnStartup: { |
636 | label: intl.formatMessage(messages.hibernateOnStartup), | 646 | label: intl.formatMessage(messages.hibernateOnStartup), |
637 | value: settings.all.app.hibernateOnStartup, | 647 | value: settings.all.app.hibernateOnStartup, |