diff options
author | 2022-07-19 10:47:44 +0100 | |
---|---|---|
committer | 2022-07-19 17:21:31 +0530 | |
commit | 3a2492178fcbc84eac33a9f0105f88c910c721e7 (patch) | |
tree | 58fee324f24c02ddb013d33d92ebd3bf724ad9ad /src/containers/settings | |
parent | 6.0.0-nightly.102 [skip ci] (diff) | |
download | ferdium-app-3a2492178fcbc84eac33a9f0105f88c910c721e7.tar.gz ferdium-app-3a2492178fcbc84eac33a9f0105f88c910c721e7.tar.zst ferdium-app-3a2492178fcbc84eac33a9f0105f88c910c721e7.zip |
fix: remove autoHibernate
This was causing issues to the service hibernation. Toggling back the isHibernationEnabled to false right after saving the service, which disabled the Hibernation.
Diffstat (limited to 'src/containers/settings')
-rw-r--r-- | src/containers/settings/EditServiceScreen.tsx | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/containers/settings/EditServiceScreen.tsx b/src/containers/settings/EditServiceScreen.tsx index ba8f374c3..0c7e3aa07 100644 --- a/src/containers/settings/EditServiceScreen.tsx +++ b/src/containers/settings/EditServiceScreen.tsx | |||
@@ -153,8 +153,6 @@ class EditServiceScreen extends Component<EditServicesScreenProps> { | |||
153 | 153 | ||
154 | const { stores } = this.props; | 154 | const { stores } = this.props; |
155 | 155 | ||
156 | const { action } = stores.router.pathValue; | ||
157 | |||
158 | let defaultSpellcheckerLanguage = | 156 | let defaultSpellcheckerLanguage = |
159 | SPELLCHECKER_LOCALES[stores.settings.app.spellcheckerLanguage]; | 157 | SPELLCHECKER_LOCALES[stores.settings.app.spellcheckerLanguage]; |
160 | 158 | ||
@@ -190,10 +188,7 @@ class EditServiceScreen extends Component<EditServicesScreenProps> { | |||
190 | }, | 188 | }, |
191 | isHibernationEnabled: { | 189 | isHibernationEnabled: { |
192 | label: intl.formatMessage(messages.enableHibernation), | 190 | label: intl.formatMessage(messages.enableHibernation), |
193 | value: | 191 | value: service?.isHibernationEnabled, |
194 | action !== 'edit' | ||
195 | ? recipe.autoHibernate | ||
196 | : service?.isHibernationEnabled, | ||
197 | default: DEFAULT_SERVICE_SETTINGS.isHibernationEnabled, | 192 | default: DEFAULT_SERVICE_SETTINGS.isHibernationEnabled, |
198 | }, | 193 | }, |
199 | isWakeUpEnabled: { | 194 | isWakeUpEnabled: { |