Skip to content

Conversation

bobrippling
Copy link
Collaborator

To allow other apps/bootcode to redraw without a reload

@RKBoss6
Copy link
Contributor

RKBoss6 commented Aug 18, 2025

Hey! I was just wondering, what is the purpose of Bangle.uiRedraw? I noticed in the app that inside of setUI, you added redraw:draw. When is it called, and what benefits are there for using it? Just curious about this, as I've never heard of it before, thanks!

@bobrippling
Copy link
Collaborator Author

Hello! So it's a way of letting other widgets or bootcode know how to redraw the clock without reloading (load()) - currently only used by voldisp, but I wanted to have a faster response when I plug my watch in to charge (#3967).

@bobrippling
Copy link
Collaborator Author

Passed a few days of testing with #3967

@bobrippling bobrippling merged commit e8aee92 into espruino:master Aug 21, 2025
1 check passed
@bobrippling bobrippling deleted the feat/clock-uiredraw branch August 21, 2025 17:25
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