v1.0.13: fix cross-folder timer stop
Remove onWillDisappear cache pruning so buttons in other folders remain in settingsCache — previously navigating away deleted their entries, causing the stop-other-timers loop to miss them on next key press. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -6438,7 +6438,7 @@ async function stopTimer(token, entryId) {
|
||||
}
|
||||
|
||||
// src/plugin.ts
|
||||
var CURRENT_VERSION = "1.0.12";
|
||||
var CURRENT_VERSION = "1.0.13";
|
||||
var GITEA_BASE = "https://gitea.pdmarf.co.uk/pdm/stream_deck_notion_timer/raw/branch/master";
|
||||
var SIGNING_PUBLIC_KEY = `-----BEGIN PUBLIC KEY-----
|
||||
MCowBQYDK2VwAyEAN7ko8TUpuPzPAJuKAZCRjV0c4ZSlou5d9pUAF6o12b4=
|
||||
@@ -6500,9 +6500,6 @@ function buttonTitle(projectName) {
|
||||
}
|
||||
var TimerToggle = class extends SingletonAction {
|
||||
settingsCache = /* @__PURE__ */ new Map();
|
||||
async onWillDisappear(ev) {
|
||||
this.settingsCache.delete(ev.action.id);
|
||||
}
|
||||
async onWillAppear(ev) {
|
||||
this.settingsCache.set(ev.action.id, ev.payload.settings);
|
||||
const { activeEntryId, projectName } = ev.payload.settings;
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user