M /sublimated/undefined +11 -0
74 unmodified lines75 this.refreshMetadata();76 })77 );78
79 // refresh metadata after file modifications (xattrs update on sync)80 this.registerEvent(81 this.app.vault.on("modify", (file) => {82 const active = this.app.workspace.getActiveFile();83 if (active && file.path === active.path) {84 // delay to let File Provider update xattrs after save85 setTimeout(() => this.refreshMetadata(), 1000);86 }87 })88 );89
90 // initial metadata read91 this.refreshMetadata();92
93 // welcome modal on first install199 unmodified lines