Merge pull request #4130 from leptun/fix_sd_menu_click

SD menu do not consume click in _scrolling state
This commit is contained in:
Alex Voinea 2023-04-07 09:28:15 +02:00 committed by GitHub
commit 75d0c87d57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -5872,7 +5872,8 @@ void lcd_sdcard_menu()
} break;
case _scrolling: //scrolling filename
{
const bool rewindFlag = lcd_clicked() || lcd_draw_update; //flag that says whether the menu should return to _standard state.
// LCD_CLICKED is used so that the click event is later consumed by the _standard state.
const bool rewindFlag = LCD_CLICKED || lcd_draw_update; //flag that says whether the menu should return to _standard state.
if (_md->scrollPointer == NULL)
{