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 | |
parent | 4aa749b59db9fb46a47a0bcff4f19a6f0552b2aa (diff) | |
download | rockbox-869a8bf.tar.gz rockbox-869a8bf.zip |
YesNo: Clear the button queue so a latent keypress doesn't skip the prompt
Change-Id: I055db211f3cceb38b2df00177451c08a3da33426
-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, /* make sure to eat any extranous keypresses */ action_wait_for_release(); + button_clear_queue(); while (result==-1) { |