From 3626714403b69ef26be7398ad9ce6806dd06463f Mon Sep 17 00:00:00 2001 From: "Helmut K. C. Tessarek" Date: Fri, 8 Jan 2021 10:36:37 -0500 Subject: [PATCH] actually toggle something ;-) (#4309) * actually toggle something ;-) * make ids a bit longer --- packages/plugins/ToggleSideBars/src/index.ts | 3 ++- packages/plugins/ToggleSideBars/src/manifest.json | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/plugins/ToggleSideBars/src/index.ts b/packages/plugins/ToggleSideBars/src/index.ts index bc58cc4dd..adfcae6c1 100644 --- a/packages/plugins/ToggleSideBars/src/index.ts +++ b/packages/plugins/ToggleSideBars/src/index.ts @@ -2,6 +2,7 @@ import joplin from 'api'; joplin.plugins.register({ onStart: async function() { - console.info('Test plugin started!'); + await joplin.views.toolbarButtons.create('toggleSideBarButton', 'toggleSideBar', 'noteToolbar'); + await joplin.views.toolbarButtons.create('toggleNoteListButton', 'toggleNoteList', 'noteToolbar'); }, }); diff --git a/packages/plugins/ToggleSideBars/src/manifest.json b/packages/plugins/ToggleSideBars/src/manifest.json index a85dd4449..0834f7044 100644 --- a/packages/plugins/ToggleSideBars/src/manifest.json +++ b/packages/plugins/ToggleSideBars/src/manifest.json @@ -2,10 +2,10 @@ "manifest_version": 1, "id": "org.joplinapp.plugins.ToggleSideBars", "app_min_version": "1.6", - "version": "1.0.0", + "version": "1.0.1", "name": "Note list and side bar toggle buttons", "description": "Adds buttons to toggle note list and side bar", "author": "Laurent Cozic", "homepage_url": "https://github.com/laurent22/joplin/tree/dev/packages/plugins/ToggleSideBars", "repository_url": "https://github.com/laurent22/joplin/tree/dev/packages/plugins/ToggleSideBars" -} \ No newline at end of file +}