mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
when the font menu is raised while in TOTP mode, the "pump" thread continues to prompt for redraws, which can eventually lead to an overflow of the server queue on the main thread that leads to deadlock and eventually a crash. This patch does two things: - splits the allow_host variable and the allow_totp_rendering variable so that the two flags have distinct meanings - use the allow_totp_rendering variable to control when the totp thread is allowed to pump the main thread to animate the timer bar. Previously the allow_host variable was introduced to control access to sensitive data, and it incidentally was also used to control TOTP rendering because when host readout is activated this can freeze the UI for extended periods of time. By splitting the flag we can now control both independently of each other. Rendering still stops when host readout is enabled, but it also stops when any other blocking dialog boxes are popped up, hopefully preventing future crashes if a user is distracted in the middle of a UX flow that can block the main loop. |
||
|---|---|---|
| .. | ||
| libraries | ||
| locales | ||
| src | ||
| tools | ||
| Cargo.toml | ||