Don't re-reverse sort
This commit is contained in:
parent
0578bbbf5d
commit
929b3f6af9
@ -1000,7 +1000,7 @@ namespace ExtUI {
|
|||||||
bool FileList::seek(const uint16_t pos, const bool skip_range_check) {
|
bool FileList::seek(const uint16_t pos, const bool skip_range_check) {
|
||||||
#if ENABLED(SDSUPPORT)
|
#if ENABLED(SDSUPPORT)
|
||||||
if (!skip_range_check && (pos + 1) > count()) return false;
|
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';
|
return card.filename[0] != '\0';
|
||||||
#else
|
#else
|
||||||
UNUSED(pos);
|
UNUSED(pos);
|
||||||
|
@ -126,7 +126,7 @@ void menu_media() {
|
|||||||
|
|
||||||
if (ui.should_draw()) for (uint16_t i = 0; i < fileCnt; i++) {
|
if (ui.should_draw()) for (uint16_t i = 0; i < fileCnt; i++) {
|
||||||
if (_menuLineNr == _thisItemNr) {
|
if (_menuLineNr == _thisItemNr) {
|
||||||
card.getfilename_sorted(SD_ORDER(i, fileCnt));
|
card.getfilename_sorted(i);
|
||||||
if (card.flag.filenameIsDir)
|
if (card.flag.filenameIsDir)
|
||||||
MENU_ITEM(sdfolder, MSG_MEDIA_MENU, card);
|
MENU_ITEM(sdfolder, MSG_MEDIA_MENU, card);
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user