mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-22 11:32:41 -05:00
Fix FS #6624 - remove useless menu items from the context menu in an empty directory
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12211 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
d71b44cbd2
commit
d18a68d93b
1 changed files with 8 additions and 6 deletions
|
|
@ -886,9 +886,9 @@ int onplay(char* file, int attr, int from)
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (context == CONTEXT_WPS ||
|
if (file && (context == CONTEXT_WPS ||
|
||||||
context == CONTEXT_TREE ||
|
context == CONTEXT_TREE ||
|
||||||
context == CONTEXT_ID3DB)
|
context == CONTEXT_ID3DB))
|
||||||
{
|
{
|
||||||
items[i].desc = ID2P(LANG_PLAYLIST);
|
items[i].desc = ID2P(LANG_PLAYLIST);
|
||||||
items[i].function = playlist_options;
|
items[i].function = playlist_options;
|
||||||
|
|
@ -998,11 +998,13 @@ int onplay(char* file, int attr, int from)
|
||||||
items[i].desc = ID2P(LANG_CREATE_DIR);
|
items[i].desc = ID2P(LANG_CREATE_DIR);
|
||||||
items[i].function = create_dir;
|
items[i].function = create_dir;
|
||||||
i++;
|
i++;
|
||||||
|
if (file)
|
||||||
|
{
|
||||||
items[i].desc = ID2P(LANG_PROPERTIES);
|
items[i].desc = ID2P(LANG_PROPERTIES);
|
||||||
items[i].function = properties;
|
items[i].function = properties;
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (context == CONTEXT_WPS)
|
if (context == CONTEXT_WPS)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue