diff options
| author | Daniel Stenberg <daniel@haxx.se> | 2002-08-22 15:47:30 +0000 |
|---|---|---|
| committer | Daniel Stenberg <daniel@haxx.se> | 2002-08-22 15:47:30 +0000 |
| commit | 053d904645885f3e4003071bb54c649ee5aa26e7 (patch) | |
| tree | 7764e51de2325455610e99f8be2b504d42f534fb /apps/settings_menu.c | |
| parent | c94aa3273106c1b016d6007a8b3c2c529caf136a (diff) | |
| download | rockbox-053d904645885f3e4003071bb54c649ee5aa26e7.zip rockbox-053d904645885f3e4003071bb54c649ee5aa26e7.tar.gz rockbox-053d904645885f3e4003071bb54c649ee5aa26e7.tar.bz2 rockbox-053d904645885f3e4003071bb54c649ee5aa26e7.tar.xz | |
Bill Napier's patch slightly remodelled. This adds a setting called
"Show hidden files" that if enabled will show files with the hidden
attribute and/or starting with a dot in the dir browser. If the setting
is set to Off, files/dirs starting with a dot or that have the hidden
attribute set will be... yes, hidden.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1926 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/settings_menu.c')
| -rw-r--r-- | apps/settings_menu.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/settings_menu.c b/apps/settings_menu.c index 21b61d7..b530073 100644 --- a/apps/settings_menu.c +++ b/apps/settings_menu.c @@ -32,9 +32,14 @@ #include "settings_menu.h" #include "backlight.h" #include "playlist.h" /* for playlist_shuffle */ +#include "fat.h" /* For dotfile settings */ #include "powermgmt.h" #include "rtc.h" +static void show_hidden_files(void) +{ + set_bool( "[Show hidden files]", &global_settings.show_hidden_files ); +} static void contrast(void) { @@ -169,6 +174,7 @@ void settings_menu(void) #ifdef HAVE_RTC { "Time/Date", timedate_set }, #endif + { "Show hidden files", show_hidden_files }, { "FF/Rewind", ff_rewind }, { "Resume", resume }, }; |