fix: add forgotten variable

oops lol
This commit is contained in:
Justin Luque 2026-01-05 20:42:57 -05:00
parent a5e8826bdb
commit 5e6ef5c62b
No known key found for this signature in database
GPG Key ID: 5D19058FC4BE922F

View File

@ -131,6 +131,8 @@ void FileSelectionActivity::loop() {
// Short press: go up one directory, or go home if at root // Short press: go up one directory, or go home if at root
if (mappedInput.getHeldTime() < GO_HOME_MS) { if (mappedInput.getHeldTime() < GO_HOME_MS) {
if (basepath != "/") { if (basepath != "/") {
const std::string oldPath = basepath;
basepath.replace(basepath.find_last_of('/'), std::string::npos, ""); basepath.replace(basepath.find_last_of('/'), std::string::npos, "");
if (basepath.empty()) basepath = "/"; if (basepath.empty()) basepath = "/";
loadFiles(); loadFiles();