diff --git a/com.pdma.notion-timer.sdPlugin/bin/plugin.js b/com.pdma.notion-timer.sdPlugin/bin/plugin.js index 68eec30..99ee210 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.59"; +var CURRENT_VERSION = "1.0.60"; 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= @@ -6761,16 +6761,11 @@ plugin_default.ui.onSendToPlugin(async (ev) => { await checkForUpdates(send); } }); -var UPDATE_CHECK_INTERVAL_MS = 30 * 60 * 1e3; plugin_default.connect(); setTimeout(() => { plugin_default.logger.info("Running initial (10s post-launch) update check"); checkForUpdates(); }, 1e4); -setInterval(() => { - plugin_default.logger.info("Running scheduled (30min) update check"); - checkForUpdates(); -}, UPDATE_CHECK_INTERVAL_MS); /*! Bundled license information: @elgato/schemas/dist/streamdeck/plugins/index.mjs: diff --git a/com.pdma.notion-timer.sdPlugin/bin/plugin.js.sig b/com.pdma.notion-timer.sdPlugin/bin/plugin.js.sig index feefdbb..b0e88c4 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/notion-timer.streamDeckPlugin b/notion-timer.streamDeckPlugin index ff707c5..e7988dc 100644 Binary files a/notion-timer.streamDeckPlugin and b/notion-timer.streamDeckPlugin differ diff --git a/src/plugin.ts b/src/plugin.ts index 94ac055..8007a21 100644 --- a/src/plugin.ts +++ b/src/plugin.ts @@ -1,4 +1,4 @@ -const CURRENT_VERSION = "1.0.59"; +const CURRENT_VERSION = "1.0.60"; 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= @@ -383,18 +383,9 @@ streamDeck.ui.onSendToPlugin<{ event: string; settings?: TimerSettings; token?: } }); -const UPDATE_CHECK_INTERVAL_MS = 30 * 60 * 1000; // 30 minutes - streamDeck.connect(); -// Initial check shortly after startup, then keep rechecking — a plugin process -// can run for days without Stream Deck restarting, and the old code only ever -// checked once per process lifetime. setTimeout(() => { streamDeck.logger.info("Running initial (10s post-launch) update check"); checkForUpdates(); }, 10_000); -setInterval(() => { - streamDeck.logger.info("Running scheduled (30min) update check"); - checkForUpdates(); -}, UPDATE_CHECK_INTERVAL_MS); diff --git a/version.json b/version.json index a43aeff..20401ea 100644 --- a/version.json +++ b/version.json @@ -1 +1 @@ -{ "version": "1.0.59" } +{ "version": "1.0.60" }