mirror of
https://github.com/lostpaul/obsidian-folder-notes.git
synced 2026-07-22 07:40:24 +00:00
Fix #64
This commit is contained in:
parent
fa380c0544
commit
358c498f99
2 changed files with 4 additions and 1 deletions
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"id": "folder-notes",
|
||||
"name": "Folder notes",
|
||||
"version": "1.6.9",
|
||||
"version": "1.6.10",
|
||||
"minAppVersion": "0.15.0",
|
||||
"description": "Create notes within folders that can be accessed without collapsing the folder, similar to the functionality offered in Notion.",
|
||||
"author": "Lost Paul",
|
||||
|
|
|
|||
|
|
@ -65,8 +65,11 @@ export class FrontMatterTitlePluginHandler {
|
|||
const newName = resolver?.resolve(file?.path ?? '')
|
||||
const folder = getFolder(this.plugin, file);
|
||||
if (!(folder instanceof TFolder)) { return; }
|
||||
|
||||
const folderNote = getFolderNote(this.plugin, folder.path);
|
||||
if (!folderNote) { return }
|
||||
if (folderNote !== file) { return }
|
||||
|
||||
if (isEvent) {
|
||||
this.plugin.changeName(folder, newName, true);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue