Skip to content

Commit

Permalink
brace
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Oct 7, 2023
1 parent 5efc2ac commit 660d108
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Marlin/src/lcd/menu/menu_media.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,18 +126,19 @@ void menu_media_filelist() {
else if (card.isMounted())
ACTION_ITEM_F(F(LCD_STR_FOLDER " .."), lcd_sd_updir);

if (ui.should_draw())
if (ui.should_draw()) {
for (int16_t i = 0; i < fileCnt; i++) {
if (_menuLineNr == _thisItemNr) {
if (_menuLineNr != _thisItemNr)
SKIP_ITEM();
else {
card.selectFileByIndexSorted(i);
if (card.flag.filenameIsDir)
MENU_ITEM(sdfolder, MSG_MEDIA_MENU, card);
else
MENU_ITEM(sdfile, MSG_MEDIA_MENU, card);
}
else
SKIP_ITEM();
}
}
END_MENU();
}

Expand Down

0 comments on commit 660d108

Please sign in to comment.