diff options
author | Christian Soffke <christian.soffke@gmail.com> | 2021-12-28 08:56:16 +0100 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2021-12-28 11:15:57 -0500 |
commit | 7dffbd84af8d4857f357ac33bd74fda3608c7ebd (patch) | |
tree | cef86518c43e92fb74658356bad1919ee868acbc /apps/onplay.c | |
parent | e8b912320561c1178d45eb12cf753be62e40ee73 (diff) | |
download | rockbox-7dffbd84af8d4857f357ac33bd74fda3608c7ebd.tar.gz rockbox-7dffbd84af8d4857f357ac33bd74fda3608c7ebd.zip |
Playlist Viewer: Add Track Info
Adds a command for showing track info to
the Playlist Viewer's context menu, which
brings up the same screen used by the WPS
for currently playing tracks.
Change-Id: I17d99671935934dad565d290a0d6fb3b0dfd8b01
Diffstat (limited to 'apps/onplay.c')
-rw-r--r-- | apps/onplay.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/onplay.c b/apps/onplay.c index aeda39ba14..93c7c93624 100644 --- a/apps/onplay.c +++ b/apps/onplay.c | |||
@@ -1529,7 +1529,9 @@ MENUITEM_FUNCTION(view_cue_item, 0, ID2P(LANG_BROWSE_CUESHEET), | |||
1529 | 1529 | ||
1530 | static int browse_id3_wrapper(void) | 1530 | static int browse_id3_wrapper(void) |
1531 | { | 1531 | { |
1532 | if (browse_id3()) | 1532 | if (browse_id3(audio_current_track(), |
1533 | playlist_get_display_index(), | ||
1534 | playlist_amount())) | ||
1533 | return GO_TO_ROOT; | 1535 | return GO_TO_ROOT; |
1534 | return GO_TO_PREVIOUS; | 1536 | return GO_TO_PREVIOUS; |
1535 | } | 1537 | } |
@@ -1854,7 +1856,7 @@ static struct hotkey_assignment hotkey_items[] = { | |||
1854 | HOTKEY_FUNC(NULL, NULL), | 1856 | HOTKEY_FUNC(NULL, NULL), |
1855 | ONPLAY_PLAYLIST }, | 1857 | ONPLAY_PLAYLIST }, |
1856 | { HOTKEY_SHOW_TRACK_INFO, LANG_MENU_SHOW_ID3_INFO, | 1858 | { HOTKEY_SHOW_TRACK_INFO, LANG_MENU_SHOW_ID3_INFO, |
1857 | HOTKEY_FUNC(browse_id3, NULL), | 1859 | HOTKEY_FUNC(browse_id3_wrapper, NULL), |
1858 | ONPLAY_RELOAD_DIR }, | 1860 | ONPLAY_RELOAD_DIR }, |
1859 | #ifdef HAVE_PITCHCONTROL | 1861 | #ifdef HAVE_PITCHCONTROL |
1860 | { HOTKEY_PITCHSCREEN, LANG_PITCH, | 1862 | { HOTKEY_PITCHSCREEN, LANG_PITCH, |