diff options
Diffstat (limited to 'apps/main.c')
-rw-r--r-- | apps/main.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/main.c b/apps/main.c index 5137ff9fa6..dac7ac755d 100644 --- a/apps/main.c +++ b/apps/main.c | |||
@@ -140,7 +140,7 @@ static int init_dircache(bool preinit) | |||
140 | if (result < 0) | 140 | if (result < 0) |
141 | { | 141 | { |
142 | firmware_settings.disk_clean = false; | 142 | firmware_settings.disk_clean = false; |
143 | if (global_settings.dircache_size <= 0) | 143 | if (global_status.dircache_size <= 0) |
144 | { | 144 | { |
145 | /* This will be in default language, settings are not | 145 | /* This will be in default language, settings are not |
146 | applied yet. Not really any easy way to fix that. */ | 146 | applied yet. Not really any easy way to fix that. */ |
@@ -148,7 +148,7 @@ static int init_dircache(bool preinit) | |||
148 | clear = true; | 148 | clear = true; |
149 | } | 149 | } |
150 | 150 | ||
151 | dircache_build(global_settings.dircache_size); | 151 | dircache_build(global_status.dircache_size); |
152 | } | 152 | } |
153 | } | 153 | } |
154 | else | 154 | else |
@@ -160,12 +160,12 @@ static int init_dircache(bool preinit) | |||
160 | if (!dircache_is_enabled() | 160 | if (!dircache_is_enabled() |
161 | && !dircache_is_initializing()) | 161 | && !dircache_is_initializing()) |
162 | { | 162 | { |
163 | if (global_settings.dircache_size <= 0) | 163 | if (global_status.dircache_size <= 0) |
164 | { | 164 | { |
165 | gui_syncsplash(0, true, str(LANG_DIRCACHE_BUILDING)); | 165 | gui_syncsplash(0, true, str(LANG_DIRCACHE_BUILDING)); |
166 | clear = true; | 166 | clear = true; |
167 | } | 167 | } |
168 | result = dircache_build(global_settings.dircache_size); | 168 | result = dircache_build(global_status.dircache_size); |
169 | } | 169 | } |
170 | 170 | ||
171 | if (result < 0) | 171 | if (result < 0) |
@@ -176,8 +176,8 @@ static int init_dircache(bool preinit) | |||
176 | { | 176 | { |
177 | backlight_on(); | 177 | backlight_on(); |
178 | show_logo(); | 178 | show_logo(); |
179 | global_settings.dircache_size = dircache_get_cache_size(); | 179 | global_status.dircache_size = dircache_get_cache_size(); |
180 | settings_save(); | 180 | status_save(); |
181 | } | 181 | } |
182 | 182 | ||
183 | return result; | 183 | return result; |