summaryrefslogtreecommitdiff
path: root/apps/gui
diff options
context:
space:
mode:
Diffstat (limited to 'apps/gui')
-rw-r--r--apps/gui/yesno.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/apps/gui/yesno.c b/apps/gui/yesno.c
index dc0465184d..a2abae33ae 100644
--- a/apps/gui/yesno.c
+++ b/apps/gui/yesno.c
@@ -169,10 +169,9 @@ enum yesno_res gui_syncyesno_run(const struct text_message * main_message,
169 screens[i].stop_scroll(); 169 screens[i].stop_scroll();
170 gui_yesno_draw(&(yn[i])); 170 gui_yesno_draw(&(yn[i]));
171 } 171 }
172
173 /* make sure to eat any extranous keypresses */ 172 /* make sure to eat any extranous keypresses */
174 action_wait_for_release(); 173 while (get_action(CONTEXT_STD+99, TIMEOUT_NOBLOCK))
175 174 action_wait_for_release();
176 while (result==-1) 175 while (result==-1)
177 { 176 {
178 /* Repeat the question every 5secs (more or less) */ 177 /* Repeat the question every 5secs (more or less) */
@@ -206,7 +205,6 @@ enum yesno_res gui_syncyesno_run(const struct text_message * main_message,
206 result=YESNO_YES; 205 result=YESNO_YES;
207 break; 206 break;
208 case ACTION_NONE: 207 case ACTION_NONE:
209 case ACTION_UNKNOWN:
210 case SYS_CHARGER_DISCONNECTED: 208 case SYS_CHARGER_DISCONNECTED:
211 case SYS_BATTERY_UPDATE: 209 case SYS_BATTERY_UPDATE:
212 /* ignore some SYS events that can happen */ 210 /* ignore some SYS events that can happen */
@@ -235,7 +233,6 @@ enum yesno_res gui_syncyesno_run(const struct text_message * main_message,
235 screens[i].scroll_stop(yn[i].vp); 233 screens[i].scroll_stop(yn[i].vp);
236 viewportmanager_theme_undo(i, true); 234 viewportmanager_theme_undo(i, true);
237 } 235 }
238
239 return(result); 236 return(result);
240} 237}
241 238