diff options
Diffstat (limited to 'apps/tree.c')
-rw-r--r-- | apps/tree.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/apps/tree.c b/apps/tree.c index 5a4292d34c..9341f81421 100644 --- a/apps/tree.c +++ b/apps/tree.c | |||
@@ -454,8 +454,15 @@ void get_current_file(char* buffer, int buffer_len) | |||
454 | tc.dirlength ? e->name : ""); | 454 | tc.dirlength ? e->name : ""); |
455 | } | 455 | } |
456 | 456 | ||
457 | /* Allow apps to change our dirfilter directly (required for sub browsers) | ||
458 | if they're suddenly going to become a file browser for example */ | ||
459 | void set_dirfilter(int l_dirfilter) | ||
460 | { | ||
461 | *tc.dirfilter = l_dirfilter; | ||
462 | } | ||
463 | |||
457 | /* Selects a file and update tree context properly */ | 464 | /* Selects a file and update tree context properly */ |
458 | static void set_current_file(char *path) | 465 | void set_current_file(char *path) |
459 | { | 466 | { |
460 | char *name; | 467 | char *name; |
461 | int i; | 468 | int i; |