Database: Eliminate redundant list item selection

- gui_synclist_select_item will be called in the update_dir
function by dirbrowse()

- it is unnecessary to call when the tables opened by
tagtree_enter are not being displayed but are only being
used for inserting table contents into the current playlist.

Change-Id: Ib768b457b2baa7eb85cf73c6339fd4f603d03d90
This commit is contained in:
Christian Soffke 2022-11-14 05:29:45 +01:00
parent 97936e0661
commit e6ab74d4ac

View file

@ -1976,7 +1976,6 @@ int tagtree_enter(struct tree_context* c)
if (reset_selection)
{
c->selected_item=0;
gui_synclist_select_item(&tree_lists, c->selected_item);
}
tree_unlock_cache(c);
@ -1991,7 +1990,6 @@ void tagtree_exit(struct tree_context* c)
if (c->dirlevel > 0)
c->dirlevel--;
c->selected_item=selected_item_history[c->dirlevel];
gui_synclist_select_item(&tree_lists, c->selected_item);
c->currtable = table_history[c->dirlevel];
c->currextra = extra_history[c->dirlevel];
}