From 4679ae1c3320136429780dcbf34d04b370752fc9 Mon Sep 17 00:00:00 2001 From: Sami Walbury Date: Wed, 31 May 2023 16:54:02 +0100 Subject: [PATCH] Refresh buttons when starting an entry to quickly update the previous button --- plugin/main.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugin/main.js b/plugin/main.js index 69a0133..4ad7697 100755 --- a/plugin/main.js +++ b/plugin/main.js @@ -133,6 +133,8 @@ async function toggle(context, settings) { } else { //Just start the new one, old one will stop, it's toggl. startEntry(apiToken, activity, workspaceId, projectId, billableToggle).then(v=>refreshButtons()) + // Let's not wait until the next polling to disable the old button + refreshButtons(); } }) }