diff options
Diffstat (limited to 'apps/playlist_viewer.c')
-rw-r--r-- | apps/playlist_viewer.c | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/apps/playlist_viewer.c b/apps/playlist_viewer.c index 36acb9b897..3f0e27d9e9 100644 --- a/apps/playlist_viewer.c +++ b/apps/playlist_viewer.c | |||
@@ -673,15 +673,30 @@ bool playlist_viewer_ex(char* filename) | |||
673 | switch (button) | 673 | switch (button) |
674 | { | 674 | { |
675 | case TREE_EXIT: | 675 | case TREE_EXIT: |
676 | #ifdef TREE_RC_EXIT | ||
677 | case TREE_RC_EXIT: | ||
678 | #endif | ||
676 | #ifdef TREE_OFF | 679 | #ifdef TREE_OFF |
677 | case TREE_OFF: | 680 | case TREE_OFF: |
678 | #endif | 681 | #endif |
679 | exit = true; | 682 | exit = true; |
680 | break; | 683 | break; |
681 | 684 | ||
685 | #ifdef TREE_ENTER | ||
686 | case TREE_ENTER: | ||
687 | case TREE_ENTER | BUTTON_REPEAT: | ||
688 | #endif | ||
689 | #ifdef TREE_RC_RUN | ||
690 | case TREE_RC_RUN: | ||
691 | #endif | ||
682 | case TREE_RUN: | 692 | case TREE_RUN: |
683 | #ifdef TREE_RUN_PRE | 693 | #ifdef TREE_RUN_PRE |
684 | if (lastbutton != TREE_RUN_PRE) | 694 | if (((button == TREE_RUN) |
695 | #ifdef TREE_RC_RUN_PRE | ||
696 | || (button == TREE_RC_RUN)) | ||
697 | && ((lastbutton != TREE_RC_RUN_PRE) | ||
698 | #endif | ||
699 | && (lastbutton != TREE_RUN_PRE))) | ||
685 | break; | 700 | break; |
686 | #endif | 701 | #endif |
687 | struct playlist_entry * current_track=playlist_buffer_get_track(&viewer.buffer, viewer.selected_track); | 702 | struct playlist_entry * current_track=playlist_buffer_get_track(&viewer.buffer, viewer.selected_track); |
@@ -723,6 +738,9 @@ bool playlist_viewer_ex(char* filename) | |||
723 | #ifdef TREE_CONTEXT2 | 738 | #ifdef TREE_CONTEXT2 |
724 | case TREE_CONTEXT2: | 739 | case TREE_CONTEXT2: |
725 | #endif | 740 | #endif |
741 | #ifdef TREE_RC_CONTEXT | ||
742 | case TREE_RC_CONTEXT: | ||
743 | #endif | ||
726 | { | 744 | { |
727 | /* ON+PLAY menu */ | 745 | /* ON+PLAY menu */ |
728 | int ret; | 746 | int ret; |
@@ -747,6 +765,9 @@ bool playlist_viewer_ex(char* filename) | |||
747 | } | 765 | } |
748 | 766 | ||
749 | case TREE_MENU: | 767 | case TREE_MENU: |
768 | #ifdef TREE_RC_MENU | ||
769 | case TREE_RC_MENU: | ||
770 | #endif | ||
750 | if (viewer_menu()) | 771 | if (viewer_menu()) |
751 | { | 772 | { |
752 | ret = true; | 773 | ret = true; |