diff options
| author | jacqueline <me@jacqueline.id.au> | 2023-07-28 15:21:18 +1000 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2023-07-28 15:21:18 +1000 |
| commit | 10120f9a92aa84f8b5d17a7e84e767a7aa0b42e7 (patch) | |
| tree | 8eec52e8533030ce34d9f827fd9d6a87809e9fb9 /src/app_console/app_console.cpp | |
| parent | 3670859d1620ca0fe3492cffb591bf29e5af849c (diff) | |
| download | tangara-fw-10120f9a92aa84f8b5d17a7e84e767a7aa0b42e7.tar.gz | |
ux fixes
Diffstat (limited to 'src/app_console/app_console.cpp')
| -rw-r--r-- | src/app_console/app_console.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
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<database::Result<database::IndexRecord>> res( + std::shared_ptr<database::Result<database::IndexRecord>> 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<playlist::IndexRecordSource>( + AppConsole::sDatabase, res, 0, res, choice)); + } auto cont = res->values().at(choice).Expand(20); if (!cont) { std::cout << "more choices than levels" << std::endl; |
