diff options
Diffstat (limited to 'apps/tree.c')
-rw-r--r-- | apps/tree.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/tree.c b/apps/tree.c index 228f491c15..3570798706 100644 --- a/apps/tree.c +++ b/apps/tree.c | |||
@@ -72,6 +72,7 @@ | |||
72 | #include "splash.h" | 72 | #include "splash.h" |
73 | #include "buttonbar.h" | 73 | #include "buttonbar.h" |
74 | #include "quickscreen.h" | 74 | #include "quickscreen.h" |
75 | #include "appevents.h" | ||
75 | 76 | ||
76 | #include "root_menu.h" | 77 | #include "root_menu.h" |
77 | 78 | ||
@@ -301,6 +302,12 @@ void tree_gui_init(void) | |||
301 | } | 302 | } |
302 | 303 | ||
303 | 304 | ||
305 | /* drawer function for the GUI_EVENT_REDRAW callback */ | ||
306 | void tree_drawlists(void) | ||
307 | { | ||
308 | gui_synclist_draw(&tree_lists); | ||
309 | } | ||
310 | |||
304 | 311 | ||
305 | struct tree_context* tree_get_context(void) | 312 | struct tree_context* tree_get_context(void) |
306 | { | 313 | { |
@@ -778,6 +785,7 @@ static int dirbrowse() | |||
778 | } | 785 | } |
779 | onplay_result = onplay(buf, attr, curr_context); | 786 | onplay_result = onplay(buf, attr, curr_context); |
780 | } | 787 | } |
788 | send_event(GUI_EVENT_REFRESH, tree_drawlists); | ||
781 | switch (onplay_result) | 789 | switch (onplay_result) |
782 | { | 790 | { |
783 | case ONPLAY_MAINMENU: | 791 | case ONPLAY_MAINMENU: |