diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2005-06-24 22:10:55 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2005-06-24 22:10:55 +0000 |
commit | 0e935bdf01aff1e3bc66221c9a0fcc80f935c3d6 (patch) | |
tree | 626165c44c756af95888380578b390ad28c078ce /apps/onplay.c | |
parent | 37d7c472ba35acada8e77db7fba24643ab5c0ceb (diff) |
Removed Create Playlist from the browser context menu, put Playlist first in all context menus
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6855 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/onplay.c')
-rw-r--r-- | apps/onplay.c | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/apps/onplay.c b/apps/onplay.c index da6d9f3e2f..25b7d204e2 100644 --- a/apps/onplay.c +++ b/apps/onplay.c @@ -257,7 +257,8 @@ static bool playlist_options(void) pstart++; } - if (audio_status() & AUDIO_STATUS_PLAY) + if (audio_status() & AUDIO_STATUS_PLAY && + context == CONTEXT_WPS) { items[i].desc = ID2P(LANG_VIEW_DYNAMIC_PLAYLIST); items[i].function = playlist_viewer; @@ -277,11 +278,6 @@ static bool playlist_options(void) if (context == CONTEXT_TREE) { - items[i].desc = ID2P(LANG_CREATE_PLAYLIST); - items[i].function = create_playlist; - i++; - pstart++; - if (audio_status() & AUDIO_STATUS_PLAY) { items[i].desc = ID2P(LANG_INSERT); @@ -528,16 +524,16 @@ int onplay(char* file, int attr, int from) context == CONTEXT_TREE || context == CONTEXT_ID3DB) { + items[i].desc = ID2P(LANG_PLAYLIST); + items[i].function = playlist_options; + i++; + if ((audio_status() & AUDIO_STATUS_PLAY)) { items[i].desc = ID2P(LANG_BOOKMARK_MENU); items[i].function = bookmark_menu; i++; } - - items[i].desc = ID2P(LANG_PLAYLIST); - items[i].function = playlist_options; - i++; } if (file) |