From 7dffbd84af8d4857f357ac33bd74fda3608c7ebd Mon Sep 17 00:00:00 2001 From: Christian Soffke Date: Tue, 28 Dec 2021 08:56:16 +0100 Subject: 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 --- apps/onplay.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'apps/onplay.c') 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), static int browse_id3_wrapper(void) { - if (browse_id3()) + if (browse_id3(audio_current_track(), + playlist_get_display_index(), + playlist_amount())) return GO_TO_ROOT; return GO_TO_PREVIOUS; } @@ -1854,7 +1856,7 @@ static struct hotkey_assignment hotkey_items[] = { HOTKEY_FUNC(NULL, NULL), ONPLAY_PLAYLIST }, { HOTKEY_SHOW_TRACK_INFO, LANG_MENU_SHOW_ID3_INFO, - HOTKEY_FUNC(browse_id3, NULL), + HOTKEY_FUNC(browse_id3_wrapper, NULL), ONPLAY_RELOAD_DIR }, #ifdef HAVE_PITCHCONTROL { HOTKEY_PITCHSCREEN, LANG_PITCH, -- cgit v1.2.3