Browse Source

Info menu tweak style

pull/1/head
Scott Lahteine 5 years ago
parent
commit
6341aefda3
  1. 30
      Marlin/src/lcd/menu/menu_info.cpp

30
Marlin/src/lcd/menu/menu_info.cpp

@ -187,7 +187,22 @@ void menu_info_board() {
// //
// About Printer > Printer Info // 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() { void menu_info_printer() {
if (ui.use_click()) return ui.goto_previous_screen( if (ui.use_click()) return ui.goto_previous_screen(
#if ENABLED(TURBO_BACK_MENU_ITEM) #if ENABLED(TURBO_BACK_MENU_ITEM)
@ -214,19 +229,8 @@ void menu_info_board() {
#endif #endif
END_SCREEN(); 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) #endif
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
// //
// "About Printer" submenu // "About Printer" submenu

Loading…
Cancel
Save