mirror of
https://github.com/lostpaul/obsidian-folder-notes.git
synced 2026-07-22 07:40:24 +00:00
Update folderNoteFunctions.ts
This commit is contained in:
parent
4871580e10
commit
a640c25f84
1 changed files with 5 additions and 0 deletions
|
|
@ -236,6 +236,11 @@ export async function deleteFolderNote(plugin: FolderNotesPlugin, file: TFile, d
|
|||
}
|
||||
const folder = getFolder(plugin, file);
|
||||
if (!folder) return;
|
||||
|
||||
plugin.settings.excludeFolders = plugin.settings.excludeFolders.filter(
|
||||
(excludedFolder) => (excludedFolder.path !== folder.path) && excludedFolder.showFolderNote);
|
||||
plugin.saveSettings(false);
|
||||
|
||||
removeCSSClassFromEL(folder.path, 'has-folder-note', plugin);
|
||||
switch (plugin.settings.deleteFilesAction) {
|
||||
case 'trash':
|
||||
|
|
|
|||
Loading…
Reference in a new issue