🧑💻 Tweak an 'if' block (#26300)
This commit is contained in:
@@ -126,16 +126,18 @@ void menu_media_filelist() {
|
|||||||
else if (card.isMounted())
|
else if (card.isMounted())
|
||||||
ACTION_ITEM_F(F(LCD_STR_FOLDER " .."), lcd_sd_updir);
|
ACTION_ITEM_F(F(LCD_STR_FOLDER " .."), lcd_sd_updir);
|
||||||
|
|
||||||
if (ui.should_draw()) for (int16_t i = 0; i < fileCnt; i++) {
|
if (ui.should_draw()) {
|
||||||
if (_menuLineNr == _thisItemNr) {
|
for (int16_t i = 0; i < fileCnt; i++) {
|
||||||
card.selectFileByIndexSorted(i);
|
if (_menuLineNr != _thisItemNr)
|
||||||
if (card.flag.filenameIsDir)
|
SKIP_ITEM();
|
||||||
MENU_ITEM(sdfolder, MSG_MEDIA_MENU, card);
|
else {
|
||||||
else
|
card.selectFileByIndexSorted(i);
|
||||||
MENU_ITEM(sdfile, MSG_MEDIA_MENU, card);
|
if (card.flag.filenameIsDir)
|
||||||
|
MENU_ITEM(sdfolder, MSG_MEDIA_MENU, card);
|
||||||
|
else
|
||||||
|
MENU_ITEM(sdfile, MSG_MEDIA_MENU, card);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
|
||||||
SKIP_ITEM();
|
|
||||||
}
|
}
|
||||||
END_MENU();
|
END_MENU();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user