Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e897f0a8f5 | ||
|
|
2e2f2553ac |
@@ -6438,7 +6438,7 @@ async function stopTimer(token, entryId) {
|
||||
}
|
||||
|
||||
// src/plugin.ts
|
||||
var CURRENT_VERSION = "1.0.43";
|
||||
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)
|
||||
@@ -6683,6 +6684,7 @@ var TimerToggle = class extends SingletonAction {
|
||||
} else {
|
||||
if (memRunningEntryId) {
|
||||
await stopTimer(global.notionToken, memRunningEntryId);
|
||||
setRunningEntry(null, null);
|
||||
this.clearElapsedCheck();
|
||||
}
|
||||
const entryId = await startTimer(global.notionToken, global.timingDbId, projectId, projectName, global.userId);
|
||||
|
||||
@@ -1,3 +1 @@
|
||||
íü„«ÚƒJºh^©A׊[ÈÍ
|
||||
Ìg»Jµmã
|
||||
SÙ¹mš']ï´y�j$¬<ÎÇÙÃ5ef«?eó=™y–
|
||||
696’``w¾)G¶"éoÛ£šAyÍ‹xìØ“ÁÞ¶á„ÙdG»Cv+t9ãXÅü]M>IÁ¨Í–¼š²ßÁ
|
||||
+6
-2
@@ -1,4 +1,4 @@
|
||||
const CURRENT_VERSION = "1.0.43";
|
||||
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<TimerSettings> {
|
||||
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),
|
||||
@@ -290,6 +293,7 @@ class TimerToggle extends SingletonAction<TimerSettings> {
|
||||
} else {
|
||||
if (memRunningEntryId) {
|
||||
await stopTimer(global.notionToken, memRunningEntryId);
|
||||
setRunningEntry(null, null);
|
||||
this.clearElapsedCheck();
|
||||
}
|
||||
const entryId = await startTimer(global.notionToken, global.timingDbId, projectId, projectName, global.userId);
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
{ "version": "1.0.43" }
|
||||
{ "version": "1.0.45" }
|
||||
|
||||
Reference in New Issue
Block a user