From e6ab74d4ac5464e579cccd1d1f6356fc41cd0734 Mon Sep 17 00:00:00 2001 From: Christian Soffke Date: Mon, 14 Nov 2022 05:29:45 +0100 Subject: [PATCH] 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 --- apps/tagtree.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/apps/tagtree.c b/apps/tagtree.c index e836aeb633..11be1425d5 100644 --- a/apps/tagtree.c +++ b/apps/tagtree.c @@ -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]; }