Skip to content

Conversation

@mark9064
Copy link
Member

@mark9064 mark9064 commented Jan 10, 2026

Lots of the screens currently use placeholder values for labels etc.

Almost all of them can be eliminated by calling Refresh() in the constructor and then correcting any alignment problems.

The main advantage of this is that the screen content is up to date when the screen scrolls into view, rather than scrolling in with placeholder values and then loading the real content.

It also eliminates redundant data which is nice

One other pattern here is that the refresh task creation is moved to the end of the constructor, since it makes sense to start the refresh timer after a successful refresh rather than before it IMO

@mark9064 mark9064 added the maintenance Background work label Jan 10, 2026
@github-actions
Copy link

Build size and comparison to main:

Section Size Difference
text 384400B -832B
data 944B 0B
bss 22640B 0B

Run in InfiniEmu

@mark9064
Copy link
Member Author

Relevant discussion and testing in #2257 also

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Background work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant