mirror of
https://github.com/jacobtread/obsidian-timekeep.git
synced 2026-07-22 10:10:27 +00:00
fix: check old file using active file set in component
This commit is contained in:
parent
18af825fdd
commit
07e8ba2bb8
1 changed files with 1 additions and 4 deletions
|
|
@ -111,10 +111,7 @@ class TimekeepComponent extends MarkdownRenderChild {
|
|||
this.onRenameEvent = this.vault.on(
|
||||
"rename",
|
||||
(file: TAbstractFile, oldName: string) => {
|
||||
if (
|
||||
file instanceof TFile &&
|
||||
oldName == this.context.sourcePath
|
||||
) {
|
||||
if (file instanceof TFile && oldName == this.fileSourcePath) {
|
||||
this.fileSourcePath = file.path;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue