Browse Source

Don't re-reverse sort

vanilla_fb_2.0.x
Scott Lahteine 5 years ago
parent
commit
929b3f6af9
  1. 2
      Marlin/src/lcd/extui/ui_api.cpp
  2. 2
      Marlin/src/lcd/menu/menu_media.cpp

2
Marlin/src/lcd/extui/ui_api.cpp

@ -1000,7 +1000,7 @@ namespace ExtUI {
bool FileList::seek(const uint16_t pos, const bool skip_range_check) {
#if ENABLED(SDSUPPORT)
if (!skip_range_check && (pos + 1) > count()) return false;
card.getfilename_sorted(SD_ORDER(pos, count()));
card.getfilename_sorted(pos);
return card.filename[0] != '\0';
#else
UNUSED(pos);

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

@ -126,7 +126,7 @@ void menu_media() {
if (ui.should_draw()) for (uint16_t i = 0; i < fileCnt; i++) {
if (_menuLineNr == _thisItemNr) {
card.getfilename_sorted(SD_ORDER(i, fileCnt));
card.getfilename_sorted(i);
if (card.flag.filenameIsDir)
MENU_ITEM(sdfolder, MSG_MEDIA_MENU, card);
else

Loading…
Cancel
Save