This commit is contained in:
Lost Paul 2023-11-09 21:45:12 +01:00
parent fa380c0544
commit 358c498f99
2 changed files with 4 additions and 1 deletions

View file

@ -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",

View file

@ -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 {