diff --git a/com.pdma.notion-timer.sdPlugin/bin/plugin.js b/com.pdma.notion-timer.sdPlugin/bin/plugin.js index 4eca5f3..1ae1597 100644 --- a/com.pdma.notion-timer.sdPlugin/bin/plugin.js +++ b/com.pdma.notion-timer.sdPlugin/bin/plugin.js @@ -6438,7 +6438,7 @@ async function stopTimer(token, entryId) { } // src/plugin.ts -var CURRENT_VERSION = "1.0.34"; +var CURRENT_VERSION = "1.0.35"; var GITEA_BASE = "https://gitea.pdmarf.co.uk/pdm/stream_deck_notion_timer/raw/branch/stable-rebuild"; var SIGNING_PUBLIC_KEY = `-----BEGIN PUBLIC KEY----- MCowBQYDK2VwAyEAN7ko8TUpuPzPAJuKAZCRjV0c4ZSlou5d9pUAF6o12b4= @@ -6626,6 +6626,7 @@ var TimerToggle = class extends SingletonAction { await ev.action.setSettings(stopped); this.settingsCache.set(ev.action.id, stopped); await setRunningEntry(null); + await Promise.all([ev.action.setState(0), ev.action.setTitle(title)]); } else { const prevEntryId = await getRunningEntryId(); if (prevEntryId) { diff --git a/com.pdma.notion-timer.sdPlugin/bin/plugin.js.sig b/com.pdma.notion-timer.sdPlugin/bin/plugin.js.sig index 60549bc..2fc381f 100644 Binary files a/com.pdma.notion-timer.sdPlugin/bin/plugin.js.sig and b/com.pdma.notion-timer.sdPlugin/bin/plugin.js.sig differ diff --git a/com.pdma.notion-timer.sdPlugin/manifest.json b/com.pdma.notion-timer.sdPlugin/manifest.json index 6be727b..810de30 100644 --- a/com.pdma.notion-timer.sdPlugin/manifest.json +++ b/com.pdma.notion-timer.sdPlugin/manifest.json @@ -2,7 +2,7 @@ "Author": "Pete Marfleet", "Description": "Toggle Notion time tracking for a project with a single button press.", "Name": "Notion Timer", - "Version": "1.0.34", + "Version": "1.0.35", "SDKVersion": 2, "Software": { "MinimumVersion": "5.0" }, "OS": [{ "Platform": "mac", "MinimumVersion": "10.11" }], diff --git a/notion-timer.streamDeckPlugin b/notion-timer.streamDeckPlugin index da4ea66..97bfa1e 100644 Binary files a/notion-timer.streamDeckPlugin and b/notion-timer.streamDeckPlugin differ diff --git a/src/plugin.ts b/src/plugin.ts index 13a9fdf..fda3919 100644 --- a/src/plugin.ts +++ b/src/plugin.ts @@ -1,4 +1,4 @@ -const CURRENT_VERSION = "1.0.34"; +const CURRENT_VERSION = "1.0.35"; const GITEA_BASE = "https://gitea.pdmarf.co.uk/pdm/stream_deck_notion_timer/raw/branch/stable-rebuild"; const SIGNING_PUBLIC_KEY = `-----BEGIN PUBLIC KEY----- MCowBQYDK2VwAyEAN7ko8TUpuPzPAJuKAZCRjV0c4ZSlou5d9pUAF6o12b4= @@ -238,6 +238,8 @@ class TimerToggle extends SingletonAction { await ev.action.setSettings(stopped); this.settingsCache.set(ev.action.id, stopped); await setRunningEntry(null); + // Re-assert after setSettings resets visual state + await Promise.all([ev.action.setState(0), ev.action.setTitle(title)]); } else { const prevEntryId = await getRunningEntryId(); diff --git a/version.json b/version.json index 020e2df..bb146ad 100644 --- a/version.json +++ b/version.json @@ -1 +1 @@ -{ "version": "1.0.34" } +{ "version": "1.0.35" }