Browse Source

Optimize Media Menu display/scrolling (#15233)

pull/1/head
Robby Candra 5 years ago
committed by Scott Lahteine
parent
commit
1ab3521351
  1. 12
      Marlin/src/lcd/menu/menu_media.cpp

12
Marlin/src/lcd/menu/menu_media.cpp

@ -125,11 +125,19 @@ class MenuItem_sdfolder {
void menu_media() {
ui.encoder_direction_menus();
const uint16_t fileCnt = card.get_num_Files();
#if HAS_GRAPHICAL_LCD
static uint16_t fileCnt;
if (ui.first_page) {
fileCnt = card.get_num_Files();
card.getWorkDirName();
}
#else
const uint16_t fileCnt = card.get_num_Files();
card.getWorkDirName();
#endif
START_MENU();
MENU_BACK(MSG_MAIN);
card.getWorkDirName();
if (card.filename[0] == '/') {
#if !PIN_EXISTS(SD_DETECT)
MENU_ITEM(function, LCD_STR_REFRESH MSG_REFRESH, lcd_sd_refresh);

Loading…
Cancel
Save