Pop-up is now correctly shown after hidden file synchronisation.

This commit is contained in:
vorotamoroz
2023-04-11 12:54:20 +09:00
parent b02596dfa1
commit 851c9f8a71
5 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -337,7 +337,7 @@ export class HiddenFileSync extends LiveSyncCommands {
await this.kvDB.set("diff-caches-internal", caches);
// When files has been retrieved from the database. they must be reloaded.
if (direction == "pull" || direction == "pullForce" && filesChanged != 0) {
if ((direction == "pull" || direction == "pullForce") && filesChanged != 0) {
const configDir = normalizePath(this.app.vault.configDir);
// Show notification to restart obsidian when something has been changed in configDir.
if (configDir in updatedFolders) {