Skip to content

Commit

Permalink
Change getAllLoadedFiles to getAbstractFileByPath
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewmcgivery committed Feb 14, 2024
1 parent 93f3c7e commit 787d0fa
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
4 changes: 1 addition & 3 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,9 +231,7 @@ export default class CanvasDailyNotePlugin extends Plugin {
2,
"0"
)}.md`;
let dailyFile = this.app.vault
.getAllLoadedFiles()
.find((file) => file.path === expectedNotePath);
let dailyFile = this.app.vault.getAbstractFileByPath(expectedNotePath);

return dailyFile;
}
Expand Down
4 changes: 2 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"id": "canvas-dailynote",
"name": "Canvas Daily Note",
"version": "1.0.0",
"version": "1.0.1",
"minAppVersion": "0.15.0",
"description": "Allows you to add a daily note node to the canvas that will always show todays note.",
"author": "Andrew McGivery",
"authorUrl": "https://github.com/andrewmcgivery",
"fundingUrl": "https://www.buymeacoffee.com/andrewmcgivery",
"isDesktopOnly": true
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "obsidian-canvas-dailynote",
"version": "1.0.0",
"version": "1.0.1",
"description": "A plugin for Obsidian.MD that allows you to add a daily note node to the canvas that will always show todays note.",
"main": "dist/main.js",
"scripts": {
Expand Down
5 changes: 3 additions & 2 deletions versions.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"1.0.0": "0.15.0"
}
"1.0.0": "0.15.0",
"1.0.1": "0.15.0"
}

0 comments on commit 787d0fa

Please sign in to comment.