summaryrefslogtreecommitdiff
path: root/apps/tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/tree.c')
-rw-r--r--apps/tree.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/apps/tree.c b/apps/tree.c
index 0dd03779a5..ac0e44c7f1 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -587,8 +587,9 @@ static bool dirbrowse(void)
587 587
588 switch ( button ) { 588 switch ( button ) {
589#ifdef TREE_ENTER 589#ifdef TREE_ENTER
590 case TREE_ENTER: 590 case TREE_ENTER | BUTTON_REL:
591 case TREE_ENTER | BUTTON_REPEAT: 591 if (lastbutton != TREE_ENTER)
592 break;
592#endif 593#endif
593#ifdef TREE_RC_RUN 594#ifdef TREE_RC_RUN
594 case TREE_RC_RUN: 595 case TREE_RC_RUN:
@@ -617,8 +618,9 @@ static bool dirbrowse(void)
617 restore = true; 618 restore = true;
618 break; 619 break;
619 620
620 case TREE_EXIT: 621 case TREE_EXIT | BUTTON_REL:
621 case TREE_EXIT | BUTTON_REPEAT: 622 if (lastbutton != TREE_EXIT)
623 break;
622#ifdef TREE_RC_EXIT 624#ifdef TREE_RC_EXIT
623 case TREE_RC_EXIT: 625 case TREE_RC_EXIT:
624#endif 626#endif