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:
Jonas Diemer authored and GitHub committed 2026-02-11 16:44:10 +03:00
1 parent 1432c6b232
commit 5d861ef0d6
1 file changed
+1 -1
+1 -1
View File
@@ -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();