diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/menus/main_menu.c | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/apps/menus/main_menu.c b/apps/menus/main_menu.c index 76ceaa483e..3dd6348e57 100644 --- a/apps/menus/main_menu.c +++ b/apps/menus/main_menu.c | |||
@@ -33,6 +33,7 @@ | |||
33 | #include "misc.h" | 33 | #include "misc.h" |
34 | #include "exported_menus.h" | 34 | #include "exported_menus.h" |
35 | #include "tree.h" | 35 | #include "tree.h" |
36 | #include "storage.h" | ||
36 | #ifdef HAVE_RECORDING | 37 | #ifdef HAVE_RECORDING |
37 | #include "recording.h" | 38 | #include "recording.h" |
38 | #endif | 39 | #endif |
@@ -341,24 +342,24 @@ static int info_action_callback(int action, struct gui_synclist *lists) | |||
341 | if (action == ACTION_STD_CANCEL) | 342 | if (action == ACTION_STD_CANCEL) |
342 | return action; | 343 | return action; |
343 | else if ((action == ACTION_STD_OK) | 344 | else if ((action == ACTION_STD_OK) |
344 | #ifdef HAVE_MULTIVOLUME | 345 | #ifdef HAVE_HOTSWAP |
345 | || action == SYS_HOTSWAP_INSERTED | 346 | || action == SYS_FS_CHANGED |
346 | || action == SYS_HOTSWAP_EXTRACTED | ||
347 | #endif | 347 | #endif |
348 | ) | 348 | ) |
349 | { | 349 | { |
350 | #ifndef SIMULATOR | 350 | #ifndef SIMULATOR |
351 | struct info_data *info = (struct info_data *)lists->data; | 351 | struct info_data *info = (struct info_data *)lists->data; |
352 | int i; | ||
352 | info->new_data = true; | 353 | info->new_data = true; |
353 | splash(0, ID2P(LANG_SCANNING_DISK)); | 354 | splash(0, ID2P(LANG_SCANNING_DISK)); |
354 | fat_recalc_free(IF_MV(0)); | 355 | for (i = 0; i < NUM_VOLUMES; i++) |
355 | #ifdef HAVE_MULTIVOLUME | 356 | { |
356 | if (fat_ismounted(1)) | 357 | #ifdef HAVE_HOTSWAP |
357 | fat_recalc_free(1); | 358 | if (fat_ismounted(i)) |
358 | #endif | 359 | #endif |
359 | 360 | fat_recalc_free(IF_MV(i)); | |
361 | } | ||
360 | #else | 362 | #else |
361 | |||
362 | (void) lists; | 363 | (void) lists; |
363 | #endif | 364 | #endif |
364 | gui_synclist_speak_item(lists); | 365 | gui_synclist_speak_item(lists); |