MENU_DISK_CHANGED is the new value for telling disk content might have

changed


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1949 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Daniel Stenberg 2002-08-23 12:41:25 +00:00
parent b285076925
commit aa458aa9d8
3 changed files with 3 additions and 3 deletions

View file

@ -299,7 +299,7 @@ Menu menu_run(int m)
#else #else
lcd_icon(ICON_PARAM, true); lcd_icon(ICON_PARAM, true);
#endif #endif
result = MENU_REFRESH_DIR; result = MENU_DISK_CHANGED;
break; break;
#endif #endif

View file

@ -24,7 +24,7 @@
typedef enum { typedef enum {
MENU_OK, MENU_OK,
MENU_REFRESH_DIR, /* any file/directory contents need to be re-read */ MENU_DISK_CHANGED, /* any file/directory contents need to be re-read */
MENU_LAST /* don't use as return code, only for number of return codes MENU_LAST /* don't use as return code, only for number of return codes
available */ available */
} Menu; } Menu;

View file

@ -645,7 +645,7 @@ bool dirbrowse(char *root)
lcd_stop_scroll(); lcd_stop_scroll();
result = main_menu(); result = main_menu();
/* do we need to rescan dir? */ /* do we need to rescan dir? */
if (result == MENU_REFRESH_DIR || if (result == MENU_DISK_CHANGED ||
lastfilter != global_settings.mp3filter || lastfilter != global_settings.mp3filter ||
lastsortcase != global_settings.sort_case || lastsortcase != global_settings.sort_case ||
show_hidden_files != global_settings.show_hidden_files) show_hidden_files != global_settings.show_hidden_files)