From ab9b687607eb43f4be0c9788136b8f0ae42181cd Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Mon, 13 Jan 2025 02:36:20 -0500 Subject: [PATCH] [BugFix] lastfm_scrobbler_viewer block search for non scrobbler logs the scrobbler viewer will view any .log file but search and include column only works with defined headers it ends up showing a blank result so block this menu for non scrobbler logs Change-Id: Ifc04dcab52d4416271388bee7d0cb10a144636a4 --- apps/plugins/lastfm_scrobbler_viewer.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/plugins/lastfm_scrobbler_viewer.c b/apps/plugins/lastfm_scrobbler_viewer.c index 0dfb8e9e2c..2d2cea596b 100644 --- a/apps/plugins/lastfm_scrobbler_viewer.c +++ b/apps/plugins/lastfm_scrobbler_viewer.c @@ -730,6 +730,9 @@ static int scrobbler_context_menu(struct printcell_data_t *pc_data) menu_item[2]= "Include"; menu_item[3]= "Custom Filter"; + if (pc_data->view_columns < SCROBBLER_MIN_COLUMNS) + col = -1; + if (col == -1) { menu_item[0]= hide_col ? "Hide All":"Show All";