diff options
author | Aidan MacDonald <amachronic@protonmail.com> | 2021-08-29 21:15:34 +0100 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2021-08-29 21:15:34 +0100 |
commit | c11ed99cb453af968493018e1b83606423d9b9a0 (patch) | |
tree | 937d185d1087e08b3af50d24150cb532c118559a /apps/gui/yesno.h | |
parent | 6322e66219baba3fea7f4ec3cc622674f2f340f3 (diff) |
bugfix: redraw yes/no screen after a full skin update
This fixes a bug reported on IRC:
1. Set 'bookmark on stop' to 'ask'
2. Play a track from the file browser
3. Stop playback, yes/no screen briefly flashes then disappears.
The screen still handles input correctly but the prompt will not
be displayed on the LCD. Long story short, get_action() can cause
the skin engine to do a full redraw which cleared the screen and
erased the prompt.
There is a special event, GUI_EVENT_NEED_UI_UPDATE, which the list
code uses to avoid precisely this problem.
Hooking up a handler for this event and redrawing the yes/no prompt
fixes the bug.
Change-Id: If3c26655540c13b488b3a11bd46e1d60d4111469
Diffstat (limited to 'apps/gui/yesno.h')
0 files changed, 0 insertions, 0 deletions