diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/tree.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/apps/tree.c b/apps/tree.c index b482682e67..07a0928db1 100644 --- a/apps/tree.c +++ b/apps/tree.c | |||
@@ -1075,6 +1075,17 @@ static bool dirbrowse(void) | |||
1075 | status_draw(false); | 1075 | status_draw(false); |
1076 | break; | 1076 | break; |
1077 | 1077 | ||
1078 | #ifdef HAVE_HOTSWAP | ||
1079 | case SYS_FS_CHANGED: | ||
1080 | if (!id3db) /* file browsing */ | ||
1081 | { | ||
1082 | /* FixMe: skip this if not in root | ||
1083 | and our path is still valid */ | ||
1084 | reload_root = true; /* the dumb way */ | ||
1085 | } | ||
1086 | break; | ||
1087 | #endif | ||
1088 | |||
1078 | default: | 1089 | default: |
1079 | if(default_event_handler(button) == SYS_USB_CONNECTED) | 1090 | if(default_event_handler(button) == SYS_USB_CONNECTED) |
1080 | { | 1091 | { |