fix bug of unwished synchronizing Config Directory and Bookmarks File (#816)
In the original code, if we set syncConfigDir to false, which means we don't want to sync this directory, but it will also cause `if( syncConfigDir && isInsideObsFolder(key, configDir) )` statement NEVER be entered. Thus, in the original code, our setting is actually be ignored.
This commit is contained in:
parent
9acae1b077
commit
17708359a1
@ -202,15 +202,19 @@ export const checkIsSkipItemOrNotByName = (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (syncConfigDir && isInsideObsFolder(key, configDir)) {
|
if (isInsideObsFolder(key, configDir) && finalIsIgnored === undefined) {
|
||||||
if (finalIsIgnored === undefined) {
|
if(syncConfigDir){
|
||||||
finalIsIgnored = false;
|
finalIsIgnored = false;
|
||||||
|
} else{
|
||||||
|
finalIsIgnored = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (syncBookmarks && isBookmarksFile(key, configDir)) {
|
if (isBookmarksFile(key, configDir) && finalIsIgnored === undefined) {
|
||||||
if (finalIsIgnored === undefined) {
|
if(syncBookmarks){
|
||||||
finalIsIgnored = false;
|
finalIsIgnored = false;
|
||||||
|
} else{
|
||||||
|
finalIsIgnored = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user