From 05bff46236a7ac5da1b27887978f4496640c38df Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 9 Jan 2017 16:20:43 +0100 Subject: [PATCH] (MaterialUI) Fix performance regression - we were not checking if the menu background actually exists prior to initiating the task --- menu/drivers/materialui.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/menu/drivers/materialui.c b/menu/drivers/materialui.c index 7aad6ce5f6..8031d14b5c 100644 --- a/menu/drivers/materialui.c +++ b/menu/drivers/materialui.c @@ -1565,8 +1565,9 @@ static void mui_context_reset(void *data) menu_display_allocate_white_texture(); mui_context_reset_textures(mui); - task_push_image_load(settings->path.menu_wallpaper, - menu_display_handle_wallpaper_upload, NULL); + if (!string_is_empty(settings->path.menu_wallpaper)) + task_push_image_load(settings->path.menu_wallpaper, + menu_display_handle_wallpaper_upload, NULL); } static int mui_environ(enum menu_environ_cb type, void *data, void *userdata)