From f09ba5ffd53bf7d28e0dc516c00a8f69ca7efae9 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Thu, 28 Sep 2023 08:29:55 +1000 Subject: Use bindey for databinding instead of hand rolling ui updates --- src/playlist/source.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/playlist/source.cpp') 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 { return {}; } - return current_page_->values().at(current_item_).track(); + return current_page_->values().at(current_item_)->track(); } auto IndexRecordSource::Advance() -> std::optional { @@ -128,7 +128,7 @@ auto IndexRecordSource::Peek(std::size_t n, std::vector* 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++; -- cgit v1.2.3