summaryrefslogtreecommitdiffstats
path: root/apps
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 /apps
parent4aa749b59db9fb46a47a0bcff4f19a6f0552b2aa (diff)
downloadrockbox-869a8bfbe785a6a569db2b23b47cc3ca84fffbb1.tar.gz
rockbox-869a8bfbe785a6a569db2b23b47cc3ca84fffbb1.tar.bz2
rockbox-869a8bfbe785a6a569db2b23b47cc3ca84fffbb1.zip
YesNo: Clear the button queue so a latent keypress doesn't skip the prompt
Change-Id: I055db211f3cceb38b2df00177451c08a3da33426
Diffstat (limited to 'apps')
-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,
/* make sure to eat any extranous keypresses */
action_wait_for_release();
+ button_clear_queue();
while (result==-1)
{