summaryrefslogtreecommitdiffstats
path: root/apps/tree.c
diff options
context:
space:
mode:
authorWilliam Wilgus <wilgus.william@gmail.com>2021-10-31 12:14:50 -0400
committerWilliam Wilgus <wilgus.william@gmail.com>2021-10-31 12:42:24 -0400
commitd72a0ed65d9cd8acc61b4ead0cc99057877a4c9f (patch)
tree038307ecb4b6906cfdcbd250cf34e5a1a84cf506 /apps/tree.c
parent7a6737f4713a15fae7c4850395615804a09c742b (diff)
downloadrockbox-d72a0ed65d9cd8acc61b4ead0cc99057877a4c9f.tar.gz
rockbox-d72a0ed65d9cd8acc61b4ead0cc99057877a4c9f.zip
Use USB events for storing plugin_menu state
use usb connected callback to cancel menu reentry after USB plug/unplug Change-Id: I8267deed6e8ada94ca527392f56f50ef22def1d7
Diffstat (limited to 'apps/tree.c')
-rw-r--r--apps/tree.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/tree.c b/apps/tree.c
index e35f769a14..63363422ba 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -1196,6 +1196,7 @@ static int ft_play_filename(char *dir, char *file, int attr)
/* These two functions are called by the USB and shutdown handlers */
void tree_flush(void)
{
+ tc.browse = NULL; /* clear browse to prevent reentry to a possibly missing file */
#ifdef HAVE_TAGCACHE
tagcache_shutdown();
#endif