(Ozone) Refresh thumbnail on close content hotkey (#14924)

This commit is contained in:
sonninnos 2023-01-29 15:52:53 +02:00 committed by GitHub
parent a055bcd16b
commit b1b7fb56a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -1506,6 +1506,7 @@ static float ozone_last_framebuffer_opacity = -1.0f;
/* Forward declarations */
static void ozone_cursor_animation_cb(void *userdata);
static void ozone_selection_changed(ozone_handle_t *ozone, bool allow_animation);
static void ozone_unload_thumbnail_textures(void *data);
static INLINE uint8_t ozone_count_lines(const char *str)
{
@ -8529,6 +8530,7 @@ static void ozone_refresh_thumbnail_image(void *data, unsigned i)
return;
ozone->flags &= ~OZONE_FLAG_SKIP_THUMBNAIL_RESET;
ozone_unload_thumbnail_textures(ozone);
/* Refresh metadata */
if (!i)

View File

@ -8282,6 +8282,7 @@ int generic_menu_entry_action(
const char *deferred_path = menu ? menu->deferred_path : NULL;
const char *flush_target = msg_hash_to_str(MENU_ENUM_LABEL_MAIN_MENU);
size_t stack_offset = 1;
unsigned i = 0;
bool reset_navigation = true;
/* Loop backwards through the menu stack to
@ -8331,6 +8332,9 @@ int generic_menu_entry_action(
* RARCH_MENU_CTL_UNSET_PREVENT_POPULATE */
menu_driver_ctl(RARCH_MENU_CTL_UNSET_PREVENT_POPULATE, NULL);
/* Ozone requires thumbnail refreshing */
menu_driver_ctl(RARCH_MENU_CTL_REFRESH_THUMBNAIL_IMAGE, &i);
if (reset_navigation)
menu_st->selection_ptr = 0;