diff options
author | Robert Kukla <roolku@rockbox.org> | 2007-11-08 16:31:44 +0000 |
---|---|---|
committer | Robert Kukla <roolku@rockbox.org> | 2007-11-08 16:31:44 +0000 |
commit | 987faeaecd96526e7ca6a90ac523c2b97de585a8 (patch) | |
tree | ff7f8d841b8ad7a899b29a7071d7e276e2ee1d95 /apps | |
parent | ca4771b40c7c8354eea4db5053a5f15755c63d10 (diff) | |
download | rockbox-987faeaecd96526e7ca6a90ac523c2b97de585a8.tar.gz rockbox-987faeaecd96526e7ca6a90ac523c2b97de585a8.zip |
only display set rating menu entry if "gather runtime data" is enabled (was removed with jdGordon's last commit).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15538 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/onplay.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/apps/onplay.c b/apps/onplay.c index 72b1d02f3a..1b52d8bce5 100644 --- a/apps/onplay.c +++ b/apps/onplay.c | |||
@@ -964,9 +964,21 @@ static int set_rating_inline(void) | |||
964 | gui_syncsplash(HZ*2, ID2P(LANG_ID3_NO_INFO)); | 964 | gui_syncsplash(HZ*2, ID2P(LANG_ID3_NO_INFO)); |
965 | return 0; | 965 | return 0; |
966 | } | 966 | } |
967 | static int ratingitem_callback(int action,const struct menu_item_ex *this_item) | ||
968 | { | ||
969 | (void)this_item; | ||
970 | switch (action) | ||
971 | { | ||
972 | case ACTION_REQUEST_MENUITEM: | ||
973 | if (!selected_file || !global_settings.runtimedb) | ||
974 | return ACTION_EXIT_MENUITEM; | ||
975 | break; | ||
976 | } | ||
977 | return action; | ||
978 | } | ||
967 | MENUITEM_FUNCTION(rating_item, 0, ID2P(LANG_MENU_SET_RATING), | 979 | MENUITEM_FUNCTION(rating_item, 0, ID2P(LANG_MENU_SET_RATING), |
968 | set_rating_inline, NULL, | 980 | set_rating_inline, NULL, |
969 | NULL, Icon_Questionmark); | 981 | ratingitem_callback, Icon_Questionmark); |
970 | #endif | 982 | #endif |
971 | 983 | ||
972 | static bool view_cue(void) | 984 | static bool view_cue(void) |