mirror of
https://github.com/clangen/musikcube.git
synced 2025-03-14 04:18:36 +00:00
Added the ability to hot swap from a browse category selection.
This commit is contained in:
parent
1621d355fa
commit
20ca61058c
@ -516,6 +516,7 @@ void PlayQueueOverlays::ShowAddCategoryOverlay(
|
||||
adapter->AddEntry(_TSTR("playqueue_overlay_add_to_start_of_queue"));
|
||||
adapter->AddEntry(_TSTR("playqueue_overlay_add_to_end_in_queue"));
|
||||
adapter->AddEntry(_TSTR("playqueue_overlay_add_as_next_in_queue"));
|
||||
adapter->AddEntry(_TSTR("playqueue_overlay_add_hotswap_queue"));
|
||||
adapter->SetSelectable(true);
|
||||
|
||||
size_t selectedIndex = 0;
|
||||
@ -542,6 +543,11 @@ void PlayQueueOverlays::ShowAddCategoryOverlay(
|
||||
showAddCategorySelectionToPlaylistOverlay(
|
||||
messageQueue, library, fieldColumn, fieldValue, fieldId);
|
||||
}
|
||||
else if (index == adapter->GetEntryCount() - 1) {
|
||||
auto tracks = queryTracksByCategory(
|
||||
library, fieldColumn, fieldValue, fieldId);
|
||||
playback.HotSwap(*tracks);
|
||||
}
|
||||
else {
|
||||
handleAddCategorySelectionToPlayQueue(
|
||||
playback, library, fieldColumn, fieldValue, fieldId, index - 1);
|
||||
|
@ -159,6 +159,7 @@
|
||||
"playqueue_overlay_add_to_start_of_queue": "add to beginning of play queue",
|
||||
"playqueue_overlay_add_to_end_in_queue": "add to end of play queue",
|
||||
"playqueue_overlay_add_as_next_in_queue": "add as next in play queue",
|
||||
"playqueue_overlay_add_hotswap_queue": "hotswap with play queue",
|
||||
"playqueue_overlay_add_to_playlist": "add to playlist",
|
||||
"playqueue_overlay_select_playlist_title": "select a playlist",
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user