summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/tree.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/tree.c b/apps/tree.c
index 237246d41e..420c55bfcf 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -467,10 +467,12 @@ bool dirbrowse(char *root)
467 467
468 case TREE_MENU: { 468 case TREE_MENU: {
469 bool lastfilter = global_settings.mp3filter; 469 bool lastfilter = global_settings.mp3filter;
470 bool lastsortcase = global_settings.sort_case;
470 lcd_stop_scroll(); 471 lcd_stop_scroll();
471 main_menu(); 472 main_menu();
472 /* do we need to rescan dir? */ 473 /* do we need to rescan dir? */
473 if ( lastfilter != global_settings.mp3filter ) 474 if ( lastfilter != global_settings.mp3filter ||
475 lastsortcase != global_settings.sort_case)
474 lastdir[0] = 0; 476 lastdir[0] = 0;
475 restore = true; 477 restore = true;
476 break; 478 break;