v1.0.60: revert recurring 30-min update check, keep 10s-after-launch only
Per Pete: staff Macs restart Stream Deck/the plugin process often enough that the one-shot 10s-post-launch check is sufficient; the periodic recheck was unwanted complexity.
This commit is contained in:
+1
-10
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user