Fixed #126 (again)
Got burnt by the dodgy way I have implemented page up/down checking for the option KeyboardBrowseLCDScreen.
This commit is contained in:
parent
853e5181d9
commit
b77fa6fb2d
1 changed files with 12 additions and 4 deletions
|
@ -273,8 +273,12 @@ bool FileBrowser::BrowsableListView::CheckBrowseNavigation(bool pageOnly)
|
|||
}
|
||||
else
|
||||
{
|
||||
list->currentIndex = 0;
|
||||
dirty = true;
|
||||
if (!pageOnly)
|
||||
{
|
||||
list->currentIndex = 0;
|
||||
list->SetCurrent();
|
||||
dirty = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (inputMappings->BrowseUp())
|
||||
|
@ -292,8 +296,12 @@ bool FileBrowser::BrowsableListView::CheckBrowseNavigation(bool pageOnly)
|
|||
}
|
||||
else
|
||||
{
|
||||
list->currentIndex = list->entries.size() - 1;
|
||||
dirty = true;
|
||||
if (!pageOnly)
|
||||
{
|
||||
list->currentIndex = list->entries.size() - 1;
|
||||
list->SetCurrent();
|
||||
dirty = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
if ((lcdPgUpDown && inputMappings->BrowsePageDownLCD()) || (!lcdPgUpDown && inputMappings->BrowsePageDown()))
|
||||
|
|
Loading…
Reference in a new issue