Fix bug with selectin epubs inside of folders

This commit is contained in:
Dave Allie
2025-12-06 12:57:17 +11:00
parent 9a33030623
commit 6d3d25a288
2 changed files with 2 additions and 2 deletions

View File

@@ -70,8 +70,8 @@ void FileSelectionScreen::handleInput() {
return;
}
if (basepath.back() != '/') basepath += "/";
if (files[selectorIndex].back() == '/') {
if (basepath.back() != '/') basepath += "/";
basepath += files[selectorIndex].substr(0, files[selectorIndex].length() - 1);
loadFiles();
updateRequired = true;