chiark / gitweb /
Keep persistent ActivityStates for everything on the stack.
authorSimon Tatham <anakin@pobox.com>
Sun, 21 Jan 2024 07:02:59 +0000 (07:02 +0000)
committerSimon Tatham <anakin@pobox.com>
Sun, 21 Jan 2024 11:37:29 +0000 (11:37 +0000)
commitfdb243f83e47d50af2db6688fec272dd8f8a2aaf
tree5aee0baf6124f45ba72bb3c5e6297c25cd07f586
parentd7e2f5121d9a2ebd67854cd6e934e8471bda7383
Keep persistent ActivityStates for everything on the stack.

This fixes the cases where temporarily going to another full-screen
activity failed to restore the in-progress state of the previous one.
In particular, nipping out to the utilities menu from composing a
post, and reading the server rules during account registration.

It's a shame; I'd have preferred to be deleting and recreating state
objects all the time, to ensure they had a well-defined amount of
internal state. But this needed less organisation. Perhaps I can come
back and do it better another time.
TODO.md
src/activity_stack.rs
src/file.rs
src/tui.rs