diff options
Diffstat (limited to 'apps/settings_menu.c')
-rw-r--r-- | apps/settings_menu.c | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/apps/settings_menu.c b/apps/settings_menu.c index 41afc72468..8aba4bc2f2 100644 --- a/apps/settings_menu.c +++ b/apps/settings_menu.c | |||
@@ -38,14 +38,6 @@ | |||
38 | #include "ata.h" | 38 | #include "ata.h" |
39 | #include "lang.h" | 39 | #include "lang.h" |
40 | 40 | ||
41 | static bool show_hidden_files(void) | ||
42 | { | ||
43 | return set_bool_options( str(LANG_HIDDEN), | ||
44 | &global_settings.show_hidden_files, | ||
45 | str(LANG_HIDDEN_SHOW), | ||
46 | str(LANG_HIDDEN_HIDE) ); | ||
47 | } | ||
48 | |||
49 | static bool contrast(void) | 41 | static bool contrast(void) |
50 | { | 42 | { |
51 | return set_int( str(LANG_CONTRAST), "", &global_settings.contrast, | 43 | return set_int( str(LANG_CONTRAST), "", &global_settings.contrast, |
@@ -64,9 +56,13 @@ static bool play_selected(void) | |||
64 | return set_bool( str(LANG_PLAY_SELECTED), &global_settings.play_selected ); | 56 | return set_bool( str(LANG_PLAY_SELECTED), &global_settings.play_selected ); |
65 | } | 57 | } |
66 | 58 | ||
67 | static bool mp3_filter(void) | 59 | static bool dir_filter(void) |
68 | { | 60 | { |
69 | return set_bool( str(LANG_MP3FILTER), &global_settings.mp3filter ); | 61 | char* names[] = { str(LANG_FILTER_ALL), |
62 | str(LANG_FILTER_SUPPORTED), | ||
63 | str(LANG_FILTER_MUSIC) }; | ||
64 | return set_option( str(LANG_FILTER), &global_settings.dirfilter, | ||
65 | names, 3, NULL ); | ||
70 | } | 66 | } |
71 | 67 | ||
72 | static bool sort_case(void) | 68 | static bool sort_case(void) |
@@ -298,8 +294,7 @@ static bool fileview_settings_menu(void) | |||
298 | 294 | ||
299 | struct menu_items items[] = { | 295 | struct menu_items items[] = { |
300 | { str(LANG_CASE_MENU), sort_case }, | 296 | { str(LANG_CASE_MENU), sort_case }, |
301 | { str(LANG_MP3FILTER), mp3_filter }, | 297 | { str(LANG_FILTER), dir_filter }, |
302 | { str(LANG_HIDDEN), show_hidden_files }, | ||
303 | { str(LANG_FOLLOW), browse_current }, | 298 | { str(LANG_FOLLOW), browse_current }, |
304 | }; | 299 | }; |
305 | 300 | ||