summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-11-05 14:20:07 -0500
committerSolomon Peachy <pizza@shaftnet.org>2020-11-11 15:39:06 +0000
commit869a8bfbe785a6a569db2b23b47cc3ca84fffbb1 (patch)
treececce758761ec45353a0c94515f9388876dc968a
parent4aa749b59db9fb46a47a0bcff4f19a6f0552b2aa (diff)
downloadrockbox-869a8bfbe785a6a569db2b23b47cc3ca84fffbb1.tar.gz
rockbox-869a8bfbe785a6a569db2b23b47cc3ca84fffbb1.zip
YesNo: Clear the button queue so a latent keypress doesn't skip the prompt
Change-Id: I055db211f3cceb38b2df00177451c08a3da33426
-rw-r--r--apps/gui/yesno.c1
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 {