summaryrefslogtreecommitdiff
path: root/src/playlist
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2023-09-28 08:29:55 +1000
committerjacqueline <me@jacqueline.id.au>2023-09-28 08:29:55 +1000
commitf09ba5ffd53bf7d28e0dc516c00a8f69ca7efae9 (patch)
treeaffce5567186d8944686afd824bf4ee4f7ee4d2d /src/playlist
parentf168bfab7698f28492c7693263525945a26cbcc8 (diff)
downloadtangara-fw-f09ba5ffd53bf7d28e0dc516c00a8f69ca7efae9.tar.gz
Use bindey for databinding instead of hand rolling ui updates
Diffstat (limited to 'src/playlist')
-rw-r--r--src/playlist/source.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/playlist/source.cpp b/src/playlist/source.cpp
index 0df514e4..cf60b1c1 100644
--- a/src/playlist/source.cpp
+++ b/src/playlist/source.cpp
@@ -51,7 +51,7 @@ auto IndexRecordSource::Current() -> std::optional<database::TrackId> {
return {};
}
- return current_page_->values().at(current_item_).track();
+ return current_page_->values().at(current_item_)->track();
}
auto IndexRecordSource::Advance() -> std::optional<database::TrackId> {
@@ -128,7 +128,7 @@ auto IndexRecordSource::Peek(std::size_t n, std::vector<database::TrackId>* out)
working_item = 0;
}
- out->push_back(working_page->values().at(working_item).track().value());
+ out->push_back(working_page->values().at(working_item)->track().value());
n--;
items_added++;
working_item++;