diff options
Diffstat (limited to 'apps/menus/main_menu.c')
-rw-r--r-- | apps/menus/main_menu.c | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/apps/menus/main_menu.c b/apps/menus/main_menu.c index 6a1295996c..8764101f73 100644 --- a/apps/menus/main_menu.c +++ b/apps/menus/main_menu.c | |||
@@ -48,6 +48,7 @@ | |||
48 | #include "time.h" | 48 | #include "time.h" |
49 | #include "wps.h" | 49 | #include "wps.h" |
50 | #include "skin_buffer.h" | 50 | #include "skin_buffer.h" |
51 | #include "disk.h" | ||
51 | 52 | ||
52 | static const struct browse_folder_info config = {ROCKBOX_DIR, SHOW_CFG}; | 53 | static const struct browse_folder_info config = {ROCKBOX_DIR, SHOW_CFG}; |
53 | 54 | ||
@@ -160,14 +161,14 @@ static const char* info_getname(int selected_item, void *data, | |||
160 | #endif | 161 | #endif |
161 | if (info->new_data) | 162 | if (info->new_data) |
162 | { | 163 | { |
163 | fat_size(IF_MV(0,) &info->size, &info->free); | 164 | volume_size(IF_MV(0,) &info->size, &info->free); |
164 | #ifdef HAVE_MULTIVOLUME | 165 | #ifdef HAVE_MULTIVOLUME |
165 | #ifndef APPLICATION | 166 | #ifndef APPLICATION |
166 | if (fat_ismounted(1)) | 167 | volume_size(1, &info->size2, &info->free2); |
167 | fat_size(1, &info->size2, &info->free2); | 168 | #else |
168 | else | 169 | info->size2 = 0; |
169 | #endif | 170 | #endif |
170 | info->size2 = 0; | 171 | |
171 | #endif | 172 | #endif |
172 | info->new_data = false; | 173 | info->new_data = false; |
173 | } | 174 | } |
@@ -347,12 +348,7 @@ static int info_action_callback(int action, struct gui_synclist *lists) | |||
347 | info->new_data = true; | 348 | info->new_data = true; |
348 | splash(0, ID2P(LANG_SCANNING_DISK)); | 349 | splash(0, ID2P(LANG_SCANNING_DISK)); |
349 | for (i = 0; i < NUM_VOLUMES; i++) | 350 | for (i = 0; i < NUM_VOLUMES; i++) |
350 | { | 351 | volume_recalc_free(IF_MV(i)); |
351 | #ifdef HAVE_HOTSWAP | ||
352 | if (fat_ismounted(i)) | ||
353 | #endif | ||
354 | fat_recalc_free(IF_MV(i)); | ||
355 | } | ||
356 | #else | 352 | #else |
357 | (void) lists; | 353 | (void) lists; |
358 | #endif | 354 | #endif |