diff options
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({ |