From 4eef29eaa30a45940a227b53975f045c8195b21d Mon Sep 17 00:00:00 2001 From: phibr0 Date: Sat, 14 Aug 2021 09:57:23 +0200 Subject: [PATCH] Bump Version --- manifest.json | 2 +- src/main.ts | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/manifest.json b/manifest.json index b084e76..32bbe14 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "customizable-sidebar", "name": "Customizable Sidebar", - "version": "1.0.0", + "version": "1.1.0", "minAppVersion": "0.12.11", "description": "This Plugin allows to add any Command to Obsidian's Sidebar Ribbon.", "author": "phibr0", diff --git a/src/main.ts b/src/main.ts index 9f1b0c8..7274e7d 100644 --- a/src/main.ts +++ b/src/main.ts @@ -22,7 +22,7 @@ export default class CustomSidebarPlugin extends Plugin { }); }); - this.addToggleCommands(); + this.addExtraCommands(); } onunload() { @@ -37,11 +37,12 @@ export default class CustomSidebarPlugin extends Plugin { await this.saveData(this.settings); } - addToggleCommands(){ + addExtraCommands(){ this.addCommand({ id: "theme-toggle", name: "Toggle Dark/Light Mode", - icon: "", + //@ts-ignore + icon: "feather-eye", callback: () => { //@ts-ignore this.app.getTheme() === "obsidian"