diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2008-01-10 06:46:04 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2008-01-10 06:46:04 +0000 |
commit | 4d238c14d70199e3a991db0c3b938eb4b0f6c93a (patch) | |
tree | 9b6eb432eebb15dce7d645d13602101e7e40c695 /apps/settings.c | |
parent | 6a56c14e17f6ba113ec0d4d40e75bffd61b293cc (diff) |
bandaid fix for FS#8168 - statusbar would be enabled if poweroff happened while in fm screen. a proper fix is to not force the statusbar on in the fm screen, but untill that happens this is fine.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16044 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/settings.c')
-rw-r--r-- | apps/settings.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/settings.c b/apps/settings.c index 2814a6f57a..26b9434ba4 100644 --- a/apps/settings.c +++ b/apps/settings.c @@ -458,6 +458,11 @@ static bool settings_write_config(char* filename, int options) fd = open(filename,O_CREAT|O_TRUNC|O_WRONLY); if (fd < 0) return false; +#if CONFIG_TUNER + bool statusbar = global_settings.statusbar; + if (global_status.statusbar_forced != 0 && statusbar) + global_settings.statusbar = false; +#endif fdprintf(fd, "# .cfg file created by rockbox %s - " "http://www.rockbox.org\r\n\r\n", appsversion); for(i=0; i<nb_settings; i++) @@ -536,6 +541,9 @@ static bool settings_write_config(char* filename, int options) fdprintf(fd,"%s: %s\r\n",settings[i].cfg_name,value); } /* for(...) */ close(fd); +#if CONFIG_TUNER + global_settings.statusbar = statusbar; +#endif return true; } #ifndef HAVE_RTC_RAM |