diff options
-rw-r--r-- | apps/onplay.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/apps/onplay.c b/apps/onplay.c index 3ea08fd9e5..5ef595a774 100644 --- a/apps/onplay.c +++ b/apps/onplay.c | |||
@@ -409,13 +409,6 @@ int onplay(char* file, int attr) | |||
409 | selected_file = file; | 409 | selected_file = file; |
410 | selected_file_attr = attr; | 410 | selected_file_attr = attr; |
411 | 411 | ||
412 | if (!(attr & ATTR_DIRECTORY)) | ||
413 | { | ||
414 | items[i].desc = ID2P(LANG_ONPLAY_OPEN_WITH); | ||
415 | items[i].function = list_viewers; | ||
416 | i++; | ||
417 | } | ||
418 | |||
419 | if (((attr & TREE_ATTR_MASK) == TREE_ATTR_MPA) || | 412 | if (((attr & TREE_ATTR_MASK) == TREE_ATTR_MPA) || |
420 | (attr & ATTR_DIRECTORY) || | 413 | (attr & ATTR_DIRECTORY) || |
421 | ((attr & TREE_ATTR_MASK) == TREE_ATTR_M3U)) | 414 | ((attr & TREE_ATTR_MASK) == TREE_ATTR_M3U)) |
@@ -441,6 +434,13 @@ int onplay(char* file, int attr) | |||
441 | items[i].function = delete_dir; | 434 | items[i].function = delete_dir; |
442 | i++; | 435 | i++; |
443 | } | 436 | } |
437 | |||
438 | if (!(attr & ATTR_DIRECTORY)) | ||
439 | { | ||
440 | items[i].desc = ID2P(LANG_ONPLAY_OPEN_WITH); | ||
441 | items[i].function = list_viewers; | ||
442 | i++; | ||
443 | } | ||
444 | } | 444 | } |
445 | 445 | ||
446 | items[i].desc = ID2P(LANG_CREATE_DIR); | 446 | items[i].desc = ID2P(LANG_CREATE_DIR); |