Don't re-reverse sort

This commit is contained in:
Scott Lahteine 2020-05-23 22:19:45 -05:00
parent 0578bbbf5d
commit 929b3f6af9
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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