diff --git a/com.pdma.notion-timer.sdPlugin/bin/plugin.js b/com.pdma.notion-timer.sdPlugin/bin/plugin.js index 8f06595..7662065 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.44"; +var CURRENT_VERSION = "1.0.45"; 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= @@ -6640,6 +6640,7 @@ var TimerToggle = class extends SingletonAction { if (this.keyDownBusy) { const title = buttonTitle(ev.payload.settings.projectName || ""); const shouldBeRunning = memRunningActionId === ev.action.id; + await new Promise((resolve) => setTimeout(resolve, 150)); await Promise.all([ ev.action.setState(shouldBeRunning ? 1 : 0), ev.action.setTitle(shouldBeRunning ? `\u23F1 ${title}` : title) diff --git a/com.pdma.notion-timer.sdPlugin/bin/plugin.js.sig b/com.pdma.notion-timer.sdPlugin/bin/plugin.js.sig index 7f3e219..1f31d42 100644 --- a/com.pdma.notion-timer.sdPlugin/bin/plugin.js.sig +++ b/com.pdma.notion-timer.sdPlugin/bin/plugin.js.sig @@ -1 +1 @@ -ß߬4•íûñ"ÆZÖXs¨2²žUîg¤¶Ù¼~œ{z« 6í§šLéäµ¢P>Øü÷p¨ÇKe̯ \ No newline at end of file +696’``w¾)G¶"éoÛ£šAyÍ‹xìØ“ÁÞ ¶á„ÙdG»Cv+t9ãXÅ­ü]M>IÁ¨Í–¼š²ßÁ \ No newline at end of file diff --git a/src/plugin.ts b/src/plugin.ts index 046a2b8..3882eb5 100644 --- a/src/plugin.ts +++ b/src/plugin.ts @@ -1,4 +1,4 @@ -const CURRENT_VERSION = "1.0.44"; +const CURRENT_VERSION = "1.0.45"; 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= @@ -246,9 +246,12 @@ class TimerToggle extends SingletonAction { if (this.keyDownBusy) { // Blocked press: redraw THIS button to match known truth instead of leaving // whatever it was already showing (which can be stale from an out-of-band - // Notion edit) — a pure visual correction, no Notion calls. + // Notion edit) — a pure visual correction, no Notion calls. Delayed slightly + // because redrawing immediately can collide with Stream Deck's own native + // key-press flash animation and get silently dropped. const title = buttonTitle(ev.payload.settings.projectName || ""); const shouldBeRunning = memRunningActionId === ev.action.id; + await new Promise((resolve) => setTimeout(resolve, 150)); await Promise.all([ ev.action.setState(shouldBeRunning ? 1 : 0), ev.action.setTitle(shouldBeRunning ? `â�± ${title}` : title), diff --git a/version.json b/version.json index 471547d..1cbc25d 100644 --- a/version.json +++ b/version.json @@ -1 +1 @@ -{ "version": "1.0.44" } +{ "version": "1.0.45" }