Skip to content

Commit

Permalink
Info menu tweak style
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Aug 28, 2019
1 parent 0f386d0 commit 6341aef
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions Marlin/src/lcd/menu/menu_info.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,22 @@ void menu_info_board() {
//
// About Printer > Printer Info
//
#if DISABLED(LCD_PRINTER_INFO_IS_BOOTSCREEN)
#if ENABLED(LCD_PRINTER_INFO_IS_BOOTSCREEN)

void menu_show_marlin_bootscreen() {
if (ui.use_click()) { ui.goto_previous_screen_no_defer(); }
ui.draw_marlin_bootscreen();
}

#if ENABLED(SHOW_CUSTOM_BOOTSCREEN)
void menu_show_custom_bootscreen() {
if (ui.use_click()) { ui.goto_screen(menu_show_marlin_bootscreen); }
ui.draw_custom_bootscreen();
}
#endif

#else

void menu_info_printer() {
if (ui.use_click()) return ui.goto_previous_screen(
#if ENABLED(TURBO_BACK_MENU_ITEM)
Expand All @@ -214,19 +229,8 @@ void menu_info_board() {
#endif
END_SCREEN();
}
#else
void menu_show_marlin_bootscreen() {
if (ui.use_click()) { ui.goto_previous_screen_no_defer(); }
ui.draw_marlin_bootscreen();
}

#if ENABLED(SHOW_CUSTOM_BOOTSCREEN)
void menu_show_custom_bootscreen() {
if (ui.use_click()) { ui.goto_screen(menu_show_marlin_bootscreen); }
ui.draw_custom_bootscreen();
}
#endif
#endif // LCD_PRINTER_INFO_IS_BOOTSCREEN
#endif

//
// "About Printer" submenu
Expand Down

0 comments on commit 6341aef

Please sign in to comment.