summaryrefslogtreecommitdiff
path: root/apps/tree.h
diff options
context:
space:
mode:
authorWilliam Wilgus <wilgus.william@gmail.com>2023-03-18 03:28:12 -0400
committerWilliam Wilgus <wilgus.william@gmail.com>2023-03-18 04:23:43 -0400
commit0c29d1788eae87eb1cba71a70b1facd6ff995eb2 (patch)
tree41c6ee7bf65920304b850878ccbe06bbf27bbb23 /apps/tree.h
parentb6d04d1ac0b52f19aea8b5efe10bbe921dbc60d2 (diff)
downloadrockbox-0c29d1788eae87eb1cba71a70b1facd6ff995eb2.tar.gz
rockbox-0c29d1788eae87eb1cba71a70b1facd6ff995eb2.zip
[Bugfix] open_plugin_browse() not showing plugins
rockbox_browse() overrides the desired dirfilter with global_settings.dirfilter if you aren't using one of the SHOW_ modes > NUM_FILTER_MODES (which come with their own sideeffects) add flag BROWSE_DIRFILTER to override global_settings.dirfilter with browse_context.dirfilter add ability to set tc->browse to NULL to exit dirbrowse immediately Change-Id: I2f40d394f9dc0864b2041293eda219f7436a7bf0
Diffstat (limited to 'apps/tree.h')
-rw-r--r--apps/tree.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/tree.h b/apps/tree.h
index 77da18d666..d454c0f7ee 100644
--- a/apps/tree.h
+++ b/apps/tree.h
@@ -38,6 +38,7 @@ struct entry {
38#define BROWSE_SELECTONLY 0x0001 /* exit on selecting a file */ 38#define BROWSE_SELECTONLY 0x0001 /* exit on selecting a file */
39#define BROWSE_NO_CONTEXT_MENU 0x0002 /* disable context menu */ 39#define BROWSE_NO_CONTEXT_MENU 0x0002 /* disable context menu */
40#define BROWSE_RUNFILE 0x0004 /* do ft_open() on the file instead of browsing */ 40#define BROWSE_RUNFILE 0x0004 /* do ft_open() on the file instead of browsing */
41#define BROWSE_DIRFILTER 0x0080 /* override global_settings.dirfilter with browse_context.dirfilter */
41#define BROWSE_SELECTED 0x0100 /* this bit is set if user selected item */ 42#define BROWSE_SELECTED 0x0100 /* this bit is set if user selected item */
42 43
43 44