Rockbox open source high quality audio player as a Music Player Daemon
mpris rockbox mpd libadwaita audio rust zig deno
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

tagtree: Add menu item "Show in Files"

Quickly reveal a database item in the File Browser.
In case of entire tables, the first entry will be revealed.

Change-Id: I4191f27ea2ab7cacbe375719314d7eb23301fd07

+15 -3
+11 -3
apps/onplay.c
··· 899 899 900 900 static int reveal(void) 901 901 { 902 + #ifdef HAVE_TAGCACHE 903 + if (!prepare_database_sel(NULL)) 904 + return 0; 905 + #endif 902 906 if (!file_exists(selected_file.path)) 903 907 { 904 908 splash(HZ*2, ID2P(LANG_FILE_NOT_FOUND)); ··· 912 916 } 913 917 914 918 MENUITEM_FUNCTION(reveal_item, 0, ID2P(LANG_SHOW_IN_FILES), 915 - reveal, NULL, Icon_file_view_menu); 919 + reveal, clipboard_callback, Icon_file_view_menu); 916 920 MENUITEM_FUNCTION(list_viewers_item, 0, ID2P(LANG_ONPLAY_OPEN_WITH), 917 921 list_viewers, clipboard_callback, Icon_NOICON); 918 922 MENUITEM_FUNCTION_W_PARAM(properties_item, 0, ID2P(LANG_PROPERTIES), ··· 1049 1053 if (selected_file.context == CONTEXT_ID3DB) 1050 1054 { 1051 1055 if (this_item == &track_info_item || 1052 - this_item == &pictureflow_item) 1056 + this_item == &pictureflow_item || 1057 + this_item == &reveal_item) 1053 1058 return action; 1054 1059 return ACTION_EXIT_MENUITEM; 1055 1060 } ··· 1104 1109 if (*tree_get_context()->dirfilter != SHOW_M3U) 1105 1110 return action; 1106 1111 } 1107 - else if (this_item == &delete_file_item) 1112 + else if (this_item == &delete_file_item || 1113 + (this_item == &reveal_item && 1114 + selected_file.context == CONTEXT_WPS)) 1108 1115 return action; 1109 1116 #if LCD_DEPTH > 1 1110 1117 else if (this_item == &set_backdrop_item) ··· 1178 1185 &rename_file_item, &clipboard_cut_item, &clipboard_copy_item, 1179 1186 &clipboard_paste_item, &delete_file_item, &delete_dir_item, 1180 1187 &list_viewers_item, &create_dir_item, &properties_item, &track_info_item, 1188 + &reveal_item, 1181 1189 #ifdef HAVE_TAGCACHE 1182 1190 &pictureflow_item, 1183 1191 #endif
+4
apps/tree.c
··· 975 975 return exit_to_new_screen(GO_TO_ROOT); 976 976 break; 977 977 978 + case ONPLAY_REVEAL_FILE: 979 + return exit_to_new_screen(GO_TO_FILEBROWSER); 980 + break; 981 + 978 982 case ONPLAY_OK: 979 983 restore = do_restore_display; 980 984 break;