From d72a0ed65d9cd8acc61b4ead0cc99057877a4c9f Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Sun, 31 Oct 2021 12:14:50 -0400 Subject: Use USB events for storing plugin_menu state use usb connected callback to cancel menu reentry after USB plug/unplug Change-Id: I8267deed6e8ada94ca527392f56f50ef22def1d7 --- apps/tree.c | 1 + 1 file changed, 1 insertion(+) (limited to 'apps/tree.c') 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 -- cgit v1.2.3