aboutsummaryrefslogtreecommitdiffstats
path: root/src/features
diff options
context:
space:
mode:
authorLibravatar Ricardo Cino <ricardo@cino.io>2022-06-25 02:18:59 +0200
committerLibravatar GitHub <noreply@github.com>2022-06-25 05:48:59 +0530
commit30afc7bd062398aebe2cf6e0d4b2cd3861f7deac (patch)
treeee5444635db88acf5518ab045eefb8b83522a15e /src/features
parentAdd split mode toggle to side bar and hide collapse button (diff)
downloadferdium-app-30afc7bd062398aebe2cf6e0d4b2cd3861f7deac.tar.gz
ferdium-app-30afc7bd062398aebe2cf6e0d4b2cd3861f7deac.tar.zst
ferdium-app-30afc7bd062398aebe2cf6e0d4b2cd3861f7deac.zip
chore: improve todo menu behaviour on fresh install (#359)
Diffstat (limited to 'src/features')
-rw-r--r--src/features/todos/store.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/features/todos/store.js b/src/features/todos/store.js
index e5a26ae04..b5228191c 100644
--- a/src/features/todos/store.js
+++ b/src/features/todos/store.js
@@ -206,8 +206,10 @@ export default class TodoStore extends FeatureStore {
206 @action _toggleTodosFeatureVisibility = () => { 206 @action _toggleTodosFeatureVisibility = () => {
207 debug('_toggleTodosFeatureVisibility'); 207 debug('_toggleTodosFeatureVisibility');
208 208
209 const isFeatureEnabled = !this.settings.isFeatureEnabledByUser;
209 this._updateSettings({ 210 this._updateSettings({
210 isFeatureEnabledByUser: !this.settings.isFeatureEnabledByUser, 211 isFeatureEnabledByUser: isFeatureEnabled,
212 isTodosPanelVisible: isFeatureEnabled,
211 }); 213 });
212 }; 214 };
213 215