fix: add forgotten variable
oops lol
This commit is contained in:
parent
a5e8826bdb
commit
5e6ef5c62b
@ -131,6 +131,8 @@ void FileSelectionActivity::loop() {
|
||||
// Short press: go up one directory, or go home if at root
|
||||
if (mappedInput.getHeldTime() < GO_HOME_MS) {
|
||||
if (basepath != "/") {
|
||||
const std::string oldPath = basepath;
|
||||
|
||||
basepath.replace(basepath.find_last_of('/'), std::string::npos, "");
|
||||
if (basepath.empty()) basepath = "/";
|
||||
loadFiles();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user