fix: Show "Back" in file browser if not in root, "Home" otherwise. (#822)
## Summary Show "Back" in file browser if not in root, "Home" otherwise. --- ### AI Usage While CrossPoint doesn't have restrictions on AI tools in contributing, please be transparent about their usage as it helps set the right context for reviewers. Did you use AI tools to help write this code? YES
This commit is contained in:
1 parent
1432c6b232
commit
5d861ef0d6
1 file changed
+1
-1
@@ -246,7 +246,7 @@ void MyLibraryActivity::render() const {
|
||||
}
|
||||
|
||||
// Help text
|
||||
const auto labels = mappedInput.mapLabels("« Home", "Open", "Up", "Down");
|
||||
const auto labels = mappedInput.mapLabels(basepath == "/" ? "« Home" : "« Back", "Open", "Up", "Down");
|
||||
GUI.drawButtonHints(renderer, labels.btn1, labels.btn2, labels.btn3, labels.btn4);
|
||||
|
||||
renderer.displayBuffer();
|
||||
|
||||
Reference in new issue
Block a user