From 10120f9a92aa84f8b5d17a7e84e767a7aa0b42e7 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Fri, 28 Jul 2023 15:21:18 +1000 Subject: ux fixes --- src/app_console/app_console.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/app_console/app_console.cpp') diff --git a/src/app_console/app_console.cpp b/src/app_console/app_console.cpp index 74e11de5..bef29834 100644 --- a/src/app_console/app_console.cpp +++ b/src/app_console/app_console.cpp @@ -233,7 +233,7 @@ int CmdDbIndex(int argc, char** argv) { return -1; } - std::unique_ptr> res( + std::shared_ptr> res( db->GetTracksByIndex(*index, 20).get()); int choice_index = 2; @@ -248,6 +248,10 @@ int CmdDbIndex(int argc, char** argv) { std::cout << "choice out of range" << std::endl; return -1; } + if (res->values().at(choice).track()) { + AppConsole::sTrackQueue->IncludeLast(std::make_shared( + AppConsole::sDatabase, res, 0, res, choice)); + } auto cont = res->values().at(choice).Expand(20); if (!cont) { std::cout << "more choices than levels" << std::endl; -- cgit v1.2.3