From 72c539d35e1853980de1d74e65acc9a22caa63f6 Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Wed, 22 Nov 2023 00:07:30 -0500 Subject: [Bug_Fix] shortcut to directory in .link files caused crash since the plugin browser is now closed when running plugins rb->set_current_file() had no valid browser context and used 'random' memory instead also adds a way to discard levels so we can load the desired directory instead of returning to the previous https://forums.rockbox.org/index.php/topic,54694.0.html Change-Id: I624246e56d42972bf6a1ce566a209b745de6f30b --- apps/open_plugin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/open_plugin.c') diff --git a/apps/open_plugin.c b/apps/open_plugin.c index 1256db79f8..afe59b38e3 100644 --- a/apps/open_plugin.c +++ b/apps/open_plugin.c @@ -353,7 +353,7 @@ static bool callback_show_item(char *name, int attr, struct tree_context *tc) { if (strstr(tc->currdir, PLUGIN_DIR) != NULL) return true; - tc->browse = NULL; /* exit immediately */ + tc->is_browsing = false; /* exit immediately */ } else if(attr & FILE_ATTR_ROCK) { -- cgit v1.2.3