diff --git a/manifest.json b/manifest.json index 01c4a20..2b06b85 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "better-plugins-page", "name": "Better Plugins Page", - "version": "1.0.11", + "version": "1.0.12", "minAppVersion": "0.15.0", "description": "Better Plugins Page for Obsidian, add filtering and hiding to the page", "author": "HananoshikaYomaru", diff --git a/package.json b/package.json index f246fc1..e97f0ec 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "obsidian-better-plugins-page", - "version": "1.0.11", + "version": "1.0.12", "description": "Better Plugins Page for Obsidian, add filtering and hiding to the page", "main": "main.js", "scripts": { diff --git a/src/main.ts b/src/main.ts index 4885745..3fce188 100644 --- a/src/main.ts +++ b/src/main.ts @@ -214,10 +214,7 @@ export default class BetterPluginsPagePlugin extends Plugin { this.addButtons(communityItems as HTMLElement[]); const visiblePlugins = communityItems.filter( (element: HTMLDivElement) => - !element.classList.contains( - "better-plugins-page-hidden-community-item" - // and not display: none - ) && element.style.display !== "none" + !(element.style.display === "none") ).length; summaryText?.setText(`Showing ${visiblePlugins} plugins:`); } diff --git a/versions.json b/versions.json index 8083719..be9441d 100644 --- a/versions.json +++ b/versions.json @@ -10,5 +10,6 @@ "1.0.8": "0.15.0", "1.0.9": "0.15.0", "1.0.10": "0.15.0", - "1.0.11": "0.15.0" + "1.0.11": "0.15.0", + "1.0.12": "0.15.0" } \ No newline at end of file