From 053d904645885f3e4003071bb54c649ee5aa26e7 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 22 Aug 2002 15:47:30 +0000 Subject: 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 --- apps/settings_menu.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'apps/settings_menu.c') diff --git a/apps/settings_menu.c b/apps/settings_menu.c index 21b61d7093..b530073ceb 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 }, }; -- cgit v1.2.3