summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorChristian Soffke <christian.soffke@gmail.com>2021-03-02 00:39:12 +0100
committerSolomon Peachy <pizza@shaftnet.org>2021-03-02 18:33:19 +0000
commit7d78958f9d52cf7de921738fb063cdf9a5012699 (patch)
tree7ee88d2af8a3666c2e35344f1ed5397237db39fc /apps
parent22cc4e4fcf78c01304ffbe9a66916c0a54788483 (diff)
downloadrockbox-7d78958f9d52cf7de921738fb063cdf9a5012699.tar.gz
rockbox-7d78958f9d52cf7de921738fb063cdf9a5012699.tar.bz2
rockbox-7d78958f9d52cf7de921738fb063cdf9a5012699.zip
Reset unknown file color when resetting filetype colors
The unknown file color is handled as a special case and also needs to be reset here Change-Id: I0446b7f6586c265dee37fef303f8564f22f06dd4
Diffstat (limited to 'apps')
-rw-r--r--apps/filetypes.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/filetypes.c b/apps/filetypes.c
index 0aebc7855b..7f7c198cb5 100644
--- a/apps/filetypes.c
+++ b/apps/filetypes.c
@@ -257,6 +257,7 @@ void read_color_theme_file(void) {
for (i = 0; i < MAX_FILETYPES; i++) {
custom_colors[i] = -1;
}
+ unknown_file.color = -1;
if (!global_settings.colors_file[0] || global_settings.colors_file[0] == '-')
return;
snprintf(buffer, MAX_PATH, THEME_DIR "/%s.colours",