diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2004-09-28 05:19:46 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2004-09-28 05:19:46 +0000 |
commit | a82fd17d82b79f0ebbd18af4d4162ffa7313d539 (patch) | |
tree | d7b6bf7e48085aab8d3f613a7e6cbf84fa291326 /apps | |
parent | 9c97f4d2a5b229a09eaf735a279f3a26a71c4912 (diff) |
The ON+Play menu in the playlist browser now behaves better, and it stays in the playlist menu after exiting
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5122 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/playlist_viewer.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/playlist_viewer.c b/apps/playlist_viewer.c index 4268a28c86..e872b495b3 100644 --- a/apps/playlist_viewer.c +++ b/apps/playlist_viewer.c @@ -902,7 +902,7 @@ bool playlist_viewer_ex(char* filename) switch (button) { - case TREE_EXIT: + case TREE_EXIT | BUTTON_REL: exit = true; break; @@ -978,6 +978,9 @@ bool playlist_viewer_ex(char* filename) /* ON+PLAY menu */ int ret; + /* Wait for the user to release the TREE_RUN key */ + while((button_get(true)) != (TREE_RUN | BUTTON_REL)) {}; + ret = onplay_menu(INDEX(viewer.cursor_pos)); if (ret < 0) |