Skip to content

Commit

Permalink
fix dynamic wallpaper bug (#15927)
Browse files Browse the repository at this point in the history
Signed-off-by: juno <[email protected]>
Co-authored-by: juno <[email protected]>
  • Loading branch information
baidxi and juno authored Nov 19, 2023
1 parent 4640273 commit ee417c0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions menu/drivers/xmb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1153,9 +1153,12 @@ static char* xmb_path_dynamic_wallpaper(xmb_handle_t *xmb)
path[++len] = '\0';

/* Do not update wallpaper in "Load Content" playlists */
if ( (xmb->categories_selection_ptr == 0 && depth > 4)
|| (xmb->categories_selection_ptr > xmb->system_tab_end && depth > 1))
if ((xmb->categories_selection_ptr == 0 && depth > 4)
|| (xmb->categories_selection_ptr > xmb->system_tab_end && depth > 1)) {
if (string_is_empty(xmb->bg_file_path))
return NULL;
return strdup(xmb->bg_file_path);
}

if (!path_is_valid(path))
fill_pathname_application_special(path, sizeof(path),
Expand Down

0 comments on commit ee417c0

Please sign in to comment.