Update commands.ts

This commit is contained in:
Lost Paul 2023-03-19 23:19:45 +01:00
parent 7e2211c794
commit ebaf2eaf9d

View file

@ -16,7 +16,8 @@ export class Commands {
item.setTitle('Remove folder from excluded folders')
.setIcon('x')
.onClick(() => {
this.plugin.settings.excludeFolders = this.plugin.settings.excludeFolders.filter((folder) => folder.path !== file.path);
this.plugin.settings.excludeFolders = this.plugin.settings.excludeFolders.filter(
(folder) => folder.path !== file.path);
this.plugin.saveSettings();
new Notice('Successfully removed folder from excluded folders');
});