diff options
| author | Jörg Hohensohn <hohensoh@rockbox.org> | 2004-10-21 18:34:48 +0000 |
|---|---|---|
| committer | Jörg Hohensohn <hohensoh@rockbox.org> | 2004-10-21 18:34:48 +0000 |
| commit | 40ae63b4fcf57da3f70e342230ef81cb3b903d4f (patch) | |
| tree | 40133e9083584c0c24ea3cb0a54aedfac22a096a /apps/settings_menu.c | |
| parent | a24bf1caef474d52687558244e93710b39b86a1e (diff) | |
| download | rockbox-40ae63b4fcf57da3f70e342230ef81cb3b903d4f.zip rockbox-40ae63b4fcf57da3f70e342230ef81cb3b903d4f.tar.gz rockbox-40ae63b4fcf57da3f70e342230ef81cb3b903d4f.tar.bz2 rockbox-40ae63b4fcf57da3f70e342230ef81cb3b903d4f.tar.xz | |
Improvement for talking filenames: While loading the directory, already cache for which files are clips available. This avoids unsuccessful spinups while browsing.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5317 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/settings_menu.c')
| -rw-r--r-- | apps/settings_menu.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/apps/settings_menu.c b/apps/settings_menu.c index 9ddf4c4..ab4f242 100644 --- a/apps/settings_menu.c +++ b/apps/settings_menu.c @@ -924,8 +924,16 @@ static bool voice_dirs(void) static bool voice_files(void) { - return set_option( str(LANG_VOICE_FILE), + int oldval = global_settings.talk_file; + bool ret; + ret = set_option( str(LANG_VOICE_FILE), &global_settings.talk_file, INT, voice_names, 4, NULL); + if (oldval != 3 && global_settings.talk_file == 3) + { /* force reload if newly talking thumbnails, + because the clip presence is cached only if enabled */ + reload_directory(); + } + return ret; } static bool voice_menu(void) |