diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2020-11-05 14:20:07 -0500 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2020-11-11 15:39:06 +0000 |
commit | 869a8bfbe785a6a569db2b23b47cc3ca84fffbb1 (patch) | |
tree | cecce758761ec45353a0c94515f9388876dc968a /apps/gui/yesno.c | |
parent | 4aa749b59db9fb46a47a0bcff4f19a6f0552b2aa (diff) | |
download | rockbox-869a8bfbe785a6a569db2b23b47cc3ca84fffbb1.tar.gz rockbox-869a8bfbe785a6a569db2b23b47cc3ca84fffbb1.zip |
YesNo: Clear the button queue so a latent keypress doesn't skip the prompt
Change-Id: I055db211f3cceb38b2df00177451c08a3da33426
Diffstat (limited to 'apps/gui/yesno.c')
-rw-r--r-- | apps/gui/yesno.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/gui/yesno.c b/apps/gui/yesno.c index e0d8ad457c..a50b2f1921 100644 --- a/apps/gui/yesno.c +++ b/apps/gui/yesno.c | |||
@@ -166,6 +166,7 @@ enum yesno_res gui_syncyesno_run(const struct text_message * main_message, | |||
166 | 166 | ||
167 | /* make sure to eat any extranous keypresses */ | 167 | /* make sure to eat any extranous keypresses */ |
168 | action_wait_for_release(); | 168 | action_wait_for_release(); |
169 | button_clear_queue(); | ||
169 | 170 | ||
170 | while (result==-1) | 171 | while (result==-1) |
171 | { | 172 | { |