Merge pull request #8478 from natinusala/master

ozone: prevent content metadata from lagging
This commit is contained in:
Twinaphex 2019-03-15 15:01:50 +01:00 committed by GitHub
commit bf89c4bd3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1293,8 +1293,6 @@ static void ozone_selection_changed(ozone_handle_t *ozone, bool allow_animation)
size_t new_selection = menu_navigation_get_selection();
ozone_node_t *node = (ozone_node_t*) file_list_get_userdata_at_offset(selection_buf, new_selection);
ozone_update_content_metadata(ozone);
menu_entry_init(&entry);
if (!node)
@ -1311,6 +1309,8 @@ static void ozone_selection_changed(ozone_handle_t *ozone, bool allow_animation)
ozone->cursor_in_sidebar_old = ozone->cursor_in_sidebar;
ozone_update_content_metadata(ozone);
menu_animation_kill_by_tag(&tag);
ozone_update_scroll(ozone, allow_animation, node);