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 5e20c49
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Marlin/src/lcd/menu/menu_media.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ 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) {
card.selectFileByIndexSorted(i);
Expand All @@ -138,6 +138,7 @@ void menu_media_filelist() {
else
SKIP_ITEM();
}
}
END_MENU();
}

Expand Down

0 comments on commit 5e20c49

Please sign in to comment.