From ca616f3e3229a8ddf6fb68a0298bc42ab2be95eb Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 25 Nov 2017 22:33:43 +0100 Subject: [PATCH] Cleanup --- tasks/task_screenshot.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tasks/task_screenshot.c b/tasks/task_screenshot.c index e9f071c5b2..7646ec2343 100644 --- a/tasks/task_screenshot.c +++ b/tasks/task_screenshot.c @@ -158,12 +158,13 @@ static void task_screenshot_handler(retro_task_t *task) #endif #ifdef HAVE_IMAGEVIEWER - if (ret && !state->silence) + if ( ret && + !state->silence && + state->history_list_enable && + g_defaults.image_history + ) { - if ( - state->history_list_enable - && g_defaults.image_history - && playlist_push( + if (playlist_push( g_defaults.image_history, state->filename, NULL, @@ -171,8 +172,7 @@ static void task_screenshot_handler(retro_task_t *task) "imageviewer", NULL, NULL - ) - ) + )) playlist_write_file(g_defaults.image_history); } #endif