mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
Tagtree 'Play Next' Menu: Eliminate redundant filename retrieval
The file name for a track in the database has been
retrieved already, before its context menu is displayed,
or a hotkey is executed, see:
8a22d2678a/apps/tree.c (L811)
So, skip over tagtree_current_playlist_insert and instead
use playlist_insert_track() directly, when user selects
something from the "Playing Next" menu or uses a hotkey.
Change-Id: Ie0789d8314949e9872bf261634d81b96432ccda3
This commit is contained in:
parent
207a7fe448
commit
129fb4016b
1 changed files with 1 additions and 1 deletions
|
@ -626,7 +626,7 @@ static int add_to_playlist(void* arg)
|
|||
}
|
||||
|
||||
#ifdef HAVE_TAGCACHE
|
||||
if (context == CONTEXT_ID3DB)
|
||||
if ((context == CONTEXT_ID3DB) && (selected_file_attr & ATTR_DIRECTORY))
|
||||
{
|
||||
tagtree_current_playlist_insert(position, queue);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue