summaryrefslogtreecommitdiff
path: root/apps/tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/tree.c')
-rw-r--r--apps/tree.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/apps/tree.c b/apps/tree.c
index 6bd7b21c45..a71db78968 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -52,6 +52,7 @@
52#include "onplay.h" 52#include "onplay.h"
53#include "buffer.h" 53#include "buffer.h"
54#include "plugin.h" 54#include "plugin.h"
55#include "power.h"
55 56
56#ifdef HAVE_LCD_BITMAP 57#ifdef HAVE_LCD_BITMAP
57#include "widgets.h" 58#include "widgets.h"
@@ -885,7 +886,9 @@ static bool dirbrowse(char *root, int *dirfilter)
885 switch ( button ) { 886 switch ( button ) {
886 case TREE_EXIT: 887 case TREE_EXIT:
887 case BUTTON_RC_STOP: 888 case BUTTON_RC_STOP:
888 case TREE_EXIT | BUTTON_REPEAT: 889#ifdef HAVE_RECORDER_KEYPAD
890 case BUTTON_LEFT | BUTTON_REPEAT:
891#endif
889 i=strlen(currdir); 892 i=strlen(currdir);
890 if (i>1) { 893 if (i>1) {
891 while (currdir[i-1]!='/') 894 while (currdir[i-1]!='/')
@@ -928,6 +931,16 @@ static bool dirbrowse(char *root, int *dirfilter)
928 settings_save(); 931 settings_save();
929 break; 932 break;
930 933
934#ifdef HAVE_RECORDER_KEYPAD
935 case BUTTON_OFF | BUTTON_REPEAT:
936#else
937 case BUTTON_STOP | BUTTON_REPEAT:
938#endif
939 if (charger_inserted()) {
940 charging_splash();
941 restore = true;
942 }
943 break;
931 944
932 case TREE_ENTER: 945 case TREE_ENTER:
933 case TREE_ENTER | BUTTON_REPEAT: 946 case TREE_ENTER | BUTTON_REPEAT: