From 1fadc2e14886e0fd5f7b181f51a0da0804eca390 Mon Sep 17 00:00:00 2001 From: Tatsuya79 Date: Fri, 6 Apr 2018 00:59:35 +0200 Subject: [PATCH] Fix image preview sometimes on both thumbs. --- menu/drivers/xmb.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/menu/drivers/xmb.c b/menu/drivers/xmb.c index 23fb367a6f..ca6d1d3abe 100755 --- a/menu/drivers/xmb.c +++ b/menu/drivers/xmb.c @@ -999,7 +999,9 @@ static void xmb_update_thumbnail_path(void *data, unsigned i, char pos) xmb_node_t *node = (xmb_node_t*) file_list_get_userdata_at_offset(selection_buf, i); - if (!string_is_empty(node->fullpath)) + if (!string_is_empty(node->fullpath) && + (pos == 'R' || (pos == 'L' && string_is_equal(xmb_thumbnails_ident('R'), + msg_hash_to_str(MENU_ENUM_LABEL_VALUE_OFF))))) { if (!string_is_empty(entry.path)) fill_pathname_join( @@ -1037,8 +1039,8 @@ static void xmb_update_thumbnail_path(void *data, unsigned i, char pos) } else { - xmb->left_thumbnail = 0; - goto end; + xmb->left_thumbnail = 0; + goto end; } } }