diff --git a/menu/drivers/ozone.c b/menu/drivers/ozone.c index b40707262a..c084476857 100644 --- a/menu/drivers/ozone.c +++ b/menu/drivers/ozone.c @@ -11240,6 +11240,9 @@ static void ozone_populate_entries( menu_driver_ctl(RARCH_MENU_CTL_UNSET_PREVENT_POPULATE, NULL); ozone_selection_changed(ozone, false); + /* Refresh title for search terms */ + ozone_set_header(ozone); + /* Handle playlist searches * (Ozone is a fickle beast...) */ if (ozone->flags & OZONE_FLAG_IS_PLAYLIST) @@ -11285,12 +11288,6 @@ static void ozone_populate_entries( ozone->num_search_terms_old = num_search_terms; } } - else if (ozone->flags & OZONE_FLAG_IS_EXPLORE_LIST) - { - /* when refreshing the explore view, also refresh the title */ - ozone_set_header(ozone); - } - return; } diff --git a/menu/drivers/xmb.c b/menu/drivers/xmb.c index 3bb219d7c9..e91171f545 100644 --- a/menu/drivers/xmb.c +++ b/menu/drivers/xmb.c @@ -2007,19 +2007,22 @@ static void xmb_set_title(xmb_handle_t *xmb) if (!path) return; - /* Set alternative title when available */ - if (node && node->console_name) - strlcpy(xmb->title_name_alt, - node->console_name, - sizeof(xmb->title_name_alt)); - + /* Use real title for dynamic backgrounds */ fill_pathname_base( xmb->title_name, path, sizeof(xmb->title_name)); path_remove_extension(xmb->title_name); - /* Add current search terms */ - menu_entries_search_append_terms_string( - xmb->title_name, sizeof(xmb->title_name)); + /* Set alternative title for visible header */ + if (node && node->console_name) + { + strlcpy(xmb->title_name_alt, + node->console_name, + sizeof(xmb->title_name_alt)); + + /* Add current search terms to alternative title */ + menu_entries_search_append_terms_string( + xmb->title_name_alt, sizeof(xmb->title_name_alt)); + } } } @@ -2756,6 +2759,9 @@ static void xmb_populate_entries(void *data, { xmb_selection_pointer_changed(xmb, false); menu_driver_ctl(RARCH_MENU_CTL_UNSET_PREVENT_POPULATE, NULL); + + /* Refresh title for search terms */ + xmb_set_title(xmb); return; }