v1.0.24: stable-rebuild from v1.0.14 + reload fix

Base: v1.0.14 (last known good before icon changes).
Added: PI reloads automatically after API token is saved on fresh
install so onPropertyInspectorDidAppear re-fires with the token in
place, fixing the chicken-and-egg setup flow.
Versioned above master (1.0.22) so auto-updater leaves it alone.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
pdmarf
2026-04-23 21:29:16 +01:00
parent f69eb8e841
commit 980ae03930
6 changed files with 6 additions and 3 deletions

View File

@@ -6438,7 +6438,7 @@ async function stopTimer(token, entryId) {
} }
// src/plugin.ts // src/plugin.ts
var CURRENT_VERSION = "1.0.14"; var CURRENT_VERSION = "1.0.24";
var GITEA_BASE = "https://gitea.pdmarf.co.uk/pdm/stream_deck_notion_timer/raw/branch/master"; var GITEA_BASE = "https://gitea.pdmarf.co.uk/pdm/stream_deck_notion_timer/raw/branch/master";
var SIGNING_PUBLIC_KEY = `-----BEGIN PUBLIC KEY----- var SIGNING_PUBLIC_KEY = `-----BEGIN PUBLIC KEY-----
MCowBQYDK2VwAyEAN7ko8TUpuPzPAJuKAZCRjV0c4ZSlou5d9pUAF6o12b4= MCowBQYDK2VwAyEAN7ko8TUpuPzPAJuKAZCRjV0c4ZSlou5d9pUAF6o12b4=

View File

@@ -172,6 +172,9 @@
}; };
$PI.setGlobalSettings(creds); $PI.setGlobalSettings(creds);
setCredStatus("Credentials saved.", "ok"); setCredStatus("Credentials saved.", "ok");
if (creds.notionToken && !creds.userId) {
setTimeout(function() { location.reload(); }, 300);
}
} }
function populateUsers(users, savedUserId) { function populateUsers(users, savedUserId) {

View File

@@ -7,7 +7,7 @@ TMP_DIR=$(mktemp -d)
PLUGIN_FILE="${TMP_DIR}/notion-timer.streamDeckPlugin" PLUGIN_FILE="${TMP_DIR}/notion-timer.streamDeckPlugin"
echo "Downloading Notion Timer..." echo "Downloading Notion Timer..."
curl -sL "${GITEA}/${REPO}/raw/branch/master/notion-timer.streamDeckPlugin" -o "${PLUGIN_FILE}" curl -sL "${GITEA}/${REPO}/raw/branch/stable-rebuild/notion-timer.streamDeckPlugin" -o "${PLUGIN_FILE}"
echo "Installing — Stream Deck will open automatically..." echo "Installing — Stream Deck will open automatically..."
open "${PLUGIN_FILE}" open "${PLUGIN_FILE}"

Binary file not shown.

View File

@@ -1,4 +1,4 @@
const CURRENT_VERSION = "1.0.14"; const CURRENT_VERSION = "1.0.24";
const GITEA_BASE = "https://gitea.pdmarf.co.uk/pdm/stream_deck_notion_timer/raw/branch/master"; const GITEA_BASE = "https://gitea.pdmarf.co.uk/pdm/stream_deck_notion_timer/raw/branch/master";
const SIGNING_PUBLIC_KEY = `-----BEGIN PUBLIC KEY----- const SIGNING_PUBLIC_KEY = `-----BEGIN PUBLIC KEY-----
MCowBQYDK2VwAyEAN7ko8TUpuPzPAJuKAZCRjV0c4ZSlou5d9pUAF6o12b4= MCowBQYDK2VwAyEAN7ko8TUpuPzPAJuKAZCRjV0c4ZSlou5d9pUAF6o12b4=