diff --git a/menu/cbs/menu_cbs_ok.c b/menu/cbs/menu_cbs_ok.c index 723a970153..3458331dbd 100644 --- a/menu/cbs/menu_cbs_ok.c +++ b/menu/cbs/menu_cbs_ok.c @@ -1069,8 +1069,10 @@ static int generic_action_ok(const char *path, strlcpy(settings->path.menu_wallpaper, action_path, sizeof(settings->path.menu_wallpaper)); - task_push_image_load(action_path, - menu_display_handle_wallpaper_upload, NULL); + + if (path_file_exists(action_path)) + task_push_image_load(action_path, + menu_display_handle_wallpaper_upload, NULL); } break; case ACTION_OK_LOAD_CORE: diff --git a/menu/drivers/materialui.c b/menu/drivers/materialui.c index 9455f84d5d..f48a2efce7 100644 --- a/menu/drivers/materialui.c +++ b/menu/drivers/materialui.c @@ -1658,7 +1658,7 @@ static void mui_context_reset(void *data) menu_display_allocate_white_texture(); mui_context_reset_textures(mui); - if (!string_is_empty(settings->path.menu_wallpaper)) + if (path_file_exists(settings->path.menu_wallpaper)) task_push_image_load(settings->path.menu_wallpaper, menu_display_handle_wallpaper_upload, NULL); } diff --git a/menu/drivers/nuklear.c b/menu/drivers/nuklear.c index 42769e4d58..5008ae18c7 100644 --- a/menu/drivers/nuklear.c +++ b/menu/drivers/nuklear.c @@ -439,8 +439,9 @@ static void nk_menu_context_reset(void *data) nk_menu_init_device(nk); nk_menu_context_load_textures(nk, iconpath); - task_push_image_load(settings->path.menu_wallpaper, - menu_display_handle_wallpaper_upload, NULL); + if (path_file_exists(settings->path.menu_wallpaper)) + task_push_image_load(settings->path.menu_wallpaper, + menu_display_handle_wallpaper_upload, NULL); } static void nk_menu_context_destroy(void *data)