🚸 Better "Bed Tramming Done" dialog (#23616)
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
This commit is contained in:
committed by
Scott Lahteine
parent
361dab93b3
commit
758dc7af9d
@@ -368,7 +368,8 @@ void MenuItem_confirm::select_screen(
|
||||
PGM_P const pref, const char * const string/*=nullptr*/, PGM_P const suff/*=nullptr*/
|
||||
) {
|
||||
ui.defer_status_screen();
|
||||
const bool ui_selection = ui.update_selection(), got_click = ui.use_click();
|
||||
const bool ui_selection = !yes ? false : !no || ui.update_selection(),
|
||||
got_click = ui.use_click();
|
||||
if (got_click || ui.should_draw()) {
|
||||
draw_select_screen(yes, no, ui_selection, pref, string, suff);
|
||||
if (got_click) {
|
||||
|
@@ -207,11 +207,13 @@ static void _lcd_level_bed_corners_get_next_position() {
|
||||
|
||||
void _lcd_draw_level_prompt() {
|
||||
if (!ui.should_draw()) return;
|
||||
MenuItem_confirm::confirm_screen(
|
||||
[]{ queue.inject(TERN(HAS_LEVELING, F("G29N"), FPSTR(G28_STR))); ui.return_to_status(); }
|
||||
, ui.goto_previous_screen_no_defer
|
||||
MenuItem_confirm::select_screen(
|
||||
GET_TEXT(TERN(HAS_LEVELING, MSG_BUTTON_LEVEL, MSG_BUTTON_DONE)),
|
||||
TERN(HAS_LEVELING, GET_TEXT(MSG_BUTTON_BACK), nullptr)
|
||||
, []{ queue.inject(TERN(HAS_LEVELING, F("G29N"), FPSTR(G28_STR))); ui.return_to_status(); }
|
||||
, TERN(HAS_LEVELING, ui.goto_previous_screen_no_defer, []{})
|
||||
, GET_TEXT(MSG_BED_TRAMMING_IN_RANGE)
|
||||
, (const char*)nullptr, PSTR("?")
|
||||
, (const char*)nullptr, NUL_STR
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user