summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-08-23 12:41:25 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-08-23 12:41:25 +0000
commitaa458aa9d8d554c03b2ff9084974bccb618d270d (patch)
tree34e9bb166b4fe3cbd9a562386dd2b0b18fc081d7 /apps
parentb285076925fed906d95573b64115cb3f6bdafe65 (diff)
downloadrockbox-aa458aa9d8d554c03b2ff9084974bccb618d270d.tar.gz
rockbox-aa458aa9d8d554c03b2ff9084974bccb618d270d.zip
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
Diffstat (limited to 'apps')
-rw-r--r--apps/menu.c2
-rw-r--r--apps/menu.h2
-rw-r--r--apps/tree.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/apps/menu.c b/apps/menu.c
index b0060f4df4..4b871bb293 100644
--- a/apps/menu.c
+++ b/apps/menu.c
@@ -299,7 +299,7 @@ Menu menu_run(int m)
299#else 299#else
300 lcd_icon(ICON_PARAM, true); 300 lcd_icon(ICON_PARAM, true);
301#endif 301#endif
302 result = MENU_REFRESH_DIR; 302 result = MENU_DISK_CHANGED;
303 break; 303 break;
304#endif 304#endif
305 305
diff --git a/apps/menu.h b/apps/menu.h
index fc962c79aa..1623aa728b 100644
--- a/apps/menu.h
+++ b/apps/menu.h
@@ -24,7 +24,7 @@
24 24
25typedef enum { 25typedef enum {
26 MENU_OK, 26 MENU_OK,
27 MENU_REFRESH_DIR, /* any file/directory contents need to be re-read */ 27 MENU_DISK_CHANGED, /* any file/directory contents need to be re-read */
28 MENU_LAST /* don't use as return code, only for number of return codes 28 MENU_LAST /* don't use as return code, only for number of return codes
29 available */ 29 available */
30} Menu; 30} Menu;
diff --git a/apps/tree.c b/apps/tree.c
index 0c4e26ab8e..d7cb7fbe33 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -645,7 +645,7 @@ bool dirbrowse(char *root)
645 lcd_stop_scroll(); 645 lcd_stop_scroll();
646 result = main_menu(); 646 result = main_menu();
647 /* do we need to rescan dir? */ 647 /* do we need to rescan dir? */
648 if (result == MENU_REFRESH_DIR || 648 if (result == MENU_DISK_CHANGED ||
649 lastfilter != global_settings.mp3filter || 649 lastfilter != global_settings.mp3filter ||
650 lastsortcase != global_settings.sort_case || 650 lastsortcase != global_settings.sort_case ||
651 show_hidden_files != global_settings.show_hidden_files) 651 show_hidden_files != global_settings.show_hidden_files)