YesNo: Clear the button queue so a latent keypress doesn't skip the prompt

Change-Id: I055db211f3cceb38b2df00177451c08a3da33426
This commit is contained in:
Solomon Peachy 2020-11-05 14:20:07 -05:00
parent 4aa749b59d
commit 869a8bfbe7

View file

@ -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)
{