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/ui/screen_track_browser.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ui/screen_track_browser.cpp') diff --git a/src/ui/screen_track_browser.cpp b/src/ui/screen_track_browser.cpp index 6cd92a04..8d1fe653 100644 --- a/src/ui/screen_track_browser.cpp +++ b/src/ui/screen_track_browser.cpp @@ -170,8 +170,8 @@ auto TrackBrowser::AddResults( initial_page_ = results; } - auto fn = [&](const database::IndexRecord& record) { - auto text = record.text(); + auto fn = [&](const std::shared_ptr& record) { + auto text = record->text(); if (!text) { // TODO(jacqueline): Display category-specific text. text = "[ no data ]"; -- cgit v1.2.3