Skip to content

Fix: In LCARS clock, do not delete the timer alarm when leaving clock. - #4325

Merged
thyttan merged 6 commits into
espruino:masterfrom
mdoggydog:maddog-lcars-timer-fix
Aug 24, 2026
Merged

Fix: In LCARS clock, do not delete the timer alarm when leaving clock.#4325
thyttan merged 6 commits into
espruino:masterfrom
mdoggydog:maddog-lcars-timer-fix

Conversation

@mdoggydog

Copy link
Copy Markdown
Contributor

The TIMER_IDX alarm, used for the "1-tap timer" feature of the LCARS clock, should not be deleted by the UI remove() method. Otherwise, the timer is lost whenever another app takes control of UI, e.g., when a message is displayed by Messages app.

This commit brings back the intended behavior: when leaving the clock, an active timer remains active; and when returning to the clock, the clock will take control of the timer (display its current state, etc) again.

The TIMER_IDX alarm, used for the "1-tap timer" feature of the LCARS clock,
should not be deleted by the UI remove() method.  Otherwise, the timer is
lost whenever another app takes control of UI, e.g., when a message is
displayed by Messages app.

This commit brings back the intended behavior:  when leaving the clock,
an active timer remains active; and when returning to the clock, the clock
will take control of the timer (display its current state, etc) again.
@mdoggydog

Copy link
Copy Markdown
Contributor Author

FYI: The build/build failure is due to linter warnings that have nothing to do with the change I made. I.e., those warnings apply to the code already in BangleApps.

I do not know what to do about that.

@thyttan

thyttan commented Aug 22, 2026

Copy link
Copy Markdown
Collaborator

I fixed the lint warnings and pushed to your branch and this PR. Should be unproblematic but could you please test it once and I'll merge then? :)

@mdoggydog

Copy link
Copy Markdown
Contributor Author

I fixed the lint warnings and pushed to your branch and this PR. Should be unproblematic but could you please test it once and I'll merge then? :)

From a quick test, yes, it appears to still be in good :works-for-me: shape. Thanks!

@thyttan

thyttan commented Aug 24, 2026

Copy link
Copy Markdown
Collaborator

Thanks!

@thyttan
thyttan merged commit c1788a0 into espruino:master Aug 24, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants