|
@@ -402,7 +402,11 @@ bool MarlinUI::update_selection() {
|
402
|
402
|
return selection;
|
403
|
403
|
}
|
404
|
404
|
|
405
|
|
-void MenuItem_confirm::select_screen(PGM_P const yes, PGM_P const no, selectFunc_t yesFunc, selectFunc_t noFunc, PGM_P const pref, const char * const string/*=nullptr*/, PGM_P const suff/*=nullptr*/) {
|
|
405
|
+void MenuItem_confirm::select_screen(
|
|
406
|
+ PGM_P const yes, PGM_P const no,
|
|
407
|
+ selectFunc_t yesFunc, selectFunc_t noFunc,
|
|
408
|
+ PGM_P const pref, const char * const string/*=nullptr*/, PGM_P const suff/*=nullptr*/
|
|
409
|
+) {
|
406
|
410
|
const bool ui_selection = ui.update_selection(), got_click = ui.use_click();
|
407
|
411
|
if (got_click || ui.should_draw()) {
|
408
|
412
|
draw_select_screen(yes, no, ui_selection, pref, string, suff);
|