Update handleCreate.ts

This commit is contained in:
Lost Paul 2024-06-01 18:27:07 +02:00
parent e8e80f6ddb
commit 504a484c8b

View file

@ -41,7 +41,7 @@ export function handleCreate(file: TAbstractFile, plugin: FolderNotesPlugin) {
if (!plugin.settings.autoCreateForAttachmentFolder) {
if (!attachmentsAreInRootFolder && cleanAttachmentFolderPath === file.name) return;
} else {
} else if (!attachmentsAreInRootFolder && cleanAttachmentFolderPath === file.name) {
openFile = false;
}