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
|
// 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();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user