From 73cd8122df25c019ea2013f69eff8d42f1e6b332 Mon Sep 17 00:00:00 2001 From: Travis Evans Date: Sun, 4 May 2025 15:15:34 -0500 Subject: [PATCH] Fix back when accessing TimerEditMenu via quick action Going to TimerEditMenu directly from a quick action and then entering Name or Start causes TimerEditMenu's back button not to go straight back to TimerView because TimerEditMenu's overridden back action gets lost. Solve this by making Name and Start's back actions return to the existing instance of TimerEditMenu rather than creating a new one. --- apps/tevtimer/app.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/apps/tevtimer/app.js b/apps/tevtimer/app.js index e1722e034..b17d453a5 100644 --- a/apps/tevtimer/app.js +++ b/apps/tevtimer/app.js @@ -998,12 +998,18 @@ class TimerEditMenu { keyboard.input({text:this.timer.name}).then(text => { this.timer.name = text; tt.set_timers_dirty(); - switch_UI(new TimerViewMenu(this.timer)); + switch_UI(this); }); }, 0); } }, - 'Start': () => { switch_UI(new TimerEditStart(this.timer)); }, + 'Start': () => { + switch_UI(new TimerEditStart( + this.timer, + () => { switch_UI(this); } + ) + ); + }, 'At end': { // Option to auto-start another timer when this one ends format: v => v === -1