mirror of
https://github.com/lostpaul/obsidian-folder-notes.git
synced 2026-07-22 07:40:24 +00:00
Fix active file class getting applied to non folder note folders
This commit is contained in:
parent
77700797a2
commit
841b4e211b
1 changed files with 3 additions and 1 deletions
|
|
@ -210,7 +210,9 @@ export default class FolderNotesPlugin extends Plugin {
|
|||
|
||||
const folder = getFolder(this, openFile);
|
||||
if (!folder) { return; }
|
||||
|
||||
const folderNote = getFolderNote(this, folder.path);
|
||||
if (!folderNote) { return; }
|
||||
if (folderNote.path !== openFile.path) { return; }
|
||||
this.activeFolderDom = this.getEL(folder.path);
|
||||
if (this.activeFolderDom) this.activeFolderDom.addClass('fn-is-active');
|
||||
}));
|
||||
|
|
|
|||
Loading…
Reference in a new issue