diff --git a/com.pdma.notion-timer.sdPlugin/bin/plugin.js b/com.pdma.notion-timer.sdPlugin/bin/plugin.js index e6c3546..1cb3255 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.27"; +var CURRENT_VERSION = "1.0.28"; 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= diff --git a/com.pdma.notion-timer.sdPlugin/bin/plugin.js.sig b/com.pdma.notion-timer.sdPlugin/bin/plugin.js.sig index 77fe0a5..c594fd6 100644 --- a/com.pdma.notion-timer.sdPlugin/bin/plugin.js.sig +++ b/com.pdma.notion-timer.sdPlugin/bin/plugin.js.sig @@ -1 +1,2 @@ -=O1ڀp?9Q'UGf" ?ǟ$3eas!0Zgp:] : \ No newline at end of file +$q Pܯ +NFw|}c("*ur_6JL`(A \ No newline at end of file diff --git a/com.pdma.notion-timer.sdPlugin/manifest.json b/com.pdma.notion-timer.sdPlugin/manifest.json index 4f263ca..9676b64 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.27", + "Version": "1.0.28", "SDKVersion": 2, "Software": { "MinimumVersion": "5.0" }, "OS": [{ "Platform": "mac", "MinimumVersion": "10.11" }], diff --git a/com.pdma.notion-timer.sdPlugin/ui/property-inspector.html b/com.pdma.notion-timer.sdPlugin/ui/property-inspector.html index e355d1f..3ce944c 100644 --- a/com.pdma.notion-timer.sdPlugin/ui/property-inspector.html +++ b/com.pdma.notion-timer.sdPlugin/ui/property-inspector.html @@ -161,6 +161,7 @@ var currentSettings = {}; var credSaveTimer = null; var credConfigured = false; + var globalUserId = ""; function setStatus(msg, cls) { var el = document.getElementById("statusText"); @@ -264,10 +265,11 @@ $PI.onDidReceiveGlobalSettings(function(jsn) { var s = jsn.payload.settings || {}; document.getElementById("notionToken").value = s.notionToken || ""; - if (s.userId) { + globalUserId = s.userId || ""; + if (globalUserId) { var sel = document.getElementById("userId"); - if (sel.querySelector('option[value="' + s.userId + '"]')) { - sel.value = s.userId; + if (sel.querySelector('option[value="' + globalUserId + '"]')) { + sel.value = globalUserId; } } @@ -306,8 +308,7 @@ document.getElementById("versionText").textContent = "v" + payload.version; } if (payload.users) { - var savedUserId = document.getElementById("userId").value; - populateUsers(payload.users, savedUserId); + populateUsers(payload.users, globalUserId); } if (payload.error) { setStatus(payload.error, "error"); diff --git a/notion-timer.streamDeckPlugin b/notion-timer.streamDeckPlugin index 7640265..88049f7 100644 Binary files a/notion-timer.streamDeckPlugin and b/notion-timer.streamDeckPlugin differ diff --git a/src/plugin.ts b/src/plugin.ts index baed658..2ed1f7b 100644 --- a/src/plugin.ts +++ b/src/plugin.ts @@ -1,4 +1,4 @@ -const CURRENT_VERSION = "1.0.27"; +const CURRENT_VERSION = "1.0.28"; 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= diff --git a/version.json b/version.json index d984738..78b5920 100644 --- a/version.json +++ b/version.json @@ -1 +1 @@ -{ "version": "1.0.27" } +{ "version": "1.0.28" }