Skip to content

Commit 3655f2c

Browse files
committed
fix(OptionsWebDAV): re-init file when bookmark_file option is changed
see #1797 Signed-off-by: Marcel Klehr <[email protected]>
1 parent da987b2 commit 3655f2c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/ui/store/actions.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,12 @@ export const actionsDefinition = {
7474
if (oldData.localRoot !== data.localRoot) {
7575
await account.init()
7676
}
77+
if (oldData.bookmark_file !== data.bookmark_file) {
78+
await account.init()
79+
}
80+
if (oldData.bookmark_file_type !== data.bookmark_file_type) {
81+
await account.init()
82+
}
7783
commit(mutations.STORE_ACCOUNT_DATA, {id, data})
7884
},
7985
async [actions.TRIGGER_SYNC]({ commit, dispatch, state }, accountId) {

0 commit comments

Comments
 (0)