summaryrefslogtreecommitdiff
path: root/src/ui/ui_fsm.cpp
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2023-07-12 10:36:06 +1000
committerjacqueline <me@jacqueline.id.au>2023-07-12 10:36:06 +1000
commitdf22bed0724b3a0d04c9fefd0f5bb130945a6b4e (patch)
tree919ad6d6dcb611aa5cb1710efd9425655caf8960 /src/ui/ui_fsm.cpp
parent67ab8bf5153f9391b8b728bc932ea8414e18c511 (diff)
downloadtangara-fw-df22bed0724b3a0d04c9fefd0f5bb130945a6b4e.tar.gz
Include title in indexes to avoid a per-record disk read
GOTTA GO FAST
Diffstat (limited to 'src/ui/ui_fsm.cpp')
-rw-r--r--src/ui/ui_fsm.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/ui_fsm.cpp b/src/ui/ui_fsm.cpp
index b57f97f1..d2d0ad59 100644
--- a/src/ui/ui_fsm.cpp
+++ b/src/ui/ui_fsm.cpp
@@ -120,7 +120,7 @@ void Browse::react(const internal::RecordSelected& ev) {
ESP_LOGI(kTag, "selected track '%s'", ev.record.text()->c_str());
// TODO(jacqueline): We should also send some kind of playlist info here.
sQueue->Clear();
- sQueue->AddLast(ev.record.track()->data().id());
+ sQueue->AddLast(*ev.record.track());
transit<Playing>();
} else {
ESP_LOGI(kTag, "selected record '%s'", ev.record.text()->c_str());