diff options
author | Vijay A <avijayr@protonmail.com> | 2021-08-02 12:05:17 +0530 |
---|---|---|
committer | Vijay Raghavan Aravamudhan <vraravam@users.noreply.github.com> | 2021-08-02 06:44:58 +0000 |
commit | 0530e37e6350be0cfc4b2d9d0cc796affafe3558 (patch) | |
tree | 6a8c189f18368af59bcaa6deb6d9bcc7a2a94aaa /src/features | |
parent | Minor visual refactoring to hide double separator. [skip ci] (diff) | |
download | ferdium-app-0530e37e6350be0cfc4b2d9d0cc796affafe3558.tar.gz ferdium-app-0530e37e6350be0cfc4b2d9d0cc796affafe3558.tar.zst ferdium-app-0530e37e6350be0cfc4b2d9d0cc796affafe3558.zip |
Fixed #1717: Turned on ToDo feature.
Diffstat (limited to 'src/features')
-rw-r--r-- | src/features/todos/store.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/features/todos/store.js b/src/features/todos/store.js index abaec677f..f283c1e59 100644 --- a/src/features/todos/store.js +++ b/src/features/todos/store.js | |||
@@ -122,12 +122,6 @@ export default class TodoStore extends FeatureStore { | |||
122 | this._registerReactions(this._allReactions); | 122 | this._registerReactions(this._allReactions); |
123 | 123 | ||
124 | this.isFeatureActive = true; | 124 | this.isFeatureActive = true; |
125 | |||
126 | if (this.settings.isFeatureEnabledByUser === undefined) { | ||
127 | this._updateSettings({ | ||
128 | isFeatureEnabledByUser: DEFAULT_IS_FEATURE_ENABLED_BY_USER, | ||
129 | }); | ||
130 | } | ||
131 | } | 125 | } |
132 | 126 | ||
133 | @action stop() { | 127 | @action stop() { |
@@ -265,6 +259,12 @@ export default class TodoStore extends FeatureStore { | |||
265 | _firstLaunchReaction = () => { | 259 | _firstLaunchReaction = () => { |
266 | const { stats } = this.stores.settings.all; | 260 | const { stats } = this.stores.settings.all; |
267 | 261 | ||
262 | if (this.settings.isFeatureEnabledByUser === undefined) { | ||
263 | this._updateSettings({ | ||
264 | isFeatureEnabledByUser: DEFAULT_IS_FEATURE_ENABLED_BY_USER, | ||
265 | }); | ||
266 | } | ||
267 | |||
268 | // Hide todos layer on first app start but show on second | 268 | // Hide todos layer on first app start but show on second |
269 | if (stats.appStarts <= 1) { | 269 | if (stats.appStarts <= 1) { |
270 | this._updateSettings({ | 270 | this._updateSettings({ |