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
|
// 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 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=
|
||||||
@@ -6500,9 +6500,6 @@ function buttonTitle(projectName) {
|
|||||||
}
|
}
|
||||||
var TimerToggle = class extends SingletonAction {
|
var TimerToggle = class extends SingletonAction {
|
||||||
settingsCache = /* @__PURE__ */ new Map();
|
settingsCache = /* @__PURE__ */ new Map();
|
||||||
async onWillDisappear(ev) {
|
|
||||||
this.settingsCache.delete(ev.action.id);
|
|
||||||
}
|
|
||||||
async onWillAppear(ev) {
|
async onWillAppear(ev) {
|
||||||
this.settingsCache.set(ev.action.id, ev.payload.settings);
|
this.settingsCache.set(ev.action.id, ev.payload.settings);
|
||||||
const { activeEntryId, projectName } = ev.payload.settings;
|
const { activeEntryId, projectName } = ev.payload.settings;
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
@@ -1,4 +1,4 @@
|
|||||||
const CURRENT_VERSION = "1.0.12";
|
const CURRENT_VERSION = "1.0.13";
|
||||||
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=
|
||||||
@@ -97,10 +97,6 @@ function buttonTitle(projectName: string): string {
|
|||||||
class TimerToggle extends SingletonAction<TimerSettings> {
|
class TimerToggle extends SingletonAction<TimerSettings> {
|
||||||
private settingsCache = new Map<string, TimerSettings>();
|
private settingsCache = new Map<string, TimerSettings>();
|
||||||
|
|
||||||
async onWillDisappear(ev: WillAppearEvent<TimerSettings>): Promise<void> {
|
|
||||||
this.settingsCache.delete(ev.action.id);
|
|
||||||
}
|
|
||||||
|
|
||||||
async onWillAppear(ev: WillAppearEvent<TimerSettings>): Promise<void> {
|
async onWillAppear(ev: WillAppearEvent<TimerSettings>): Promise<void> {
|
||||||
this.settingsCache.set(ev.action.id, ev.payload.settings);
|
this.settingsCache.set(ev.action.id, ev.payload.settings);
|
||||||
const { activeEntryId, projectName } = ev.payload.settings;
|
const { activeEntryId, projectName } = ev.payload.settings;
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
{ "version": "1.0.12" }
|
{ "version": "1.0.13" }
|
||||||
|
|||||||
Reference in New Issue
Block a user