Skip to content

Commit

Permalink
settings: delete stored stats when the setting is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksey-hoffman committed Jun 13, 2021
1 parent 1955484 commit 1fe62de
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/views/Settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1263,6 +1263,14 @@ export default {
else if (!value) {
this.$store.dispatch('STOP_APP_UPDATER')
}
},
storeDirItemOpenEvent (newValue) {
if (!newValue) {
this.$store.dispatch('SET', {
key: 'storageData.stats.dirItemsTimeline',
value: []
})
}
}
},
computed: {
Expand Down

0 comments on commit 1fe62de

Please sign in to comment.