summaryrefslogtreecommitdiff
path: root/apps/tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/tree.c')
-rw-r--r--apps/tree.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/tree.c b/apps/tree.c
index 139043a..c9f5847 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -484,7 +484,8 @@ static bool ask_resume(bool ask_once)
#endif
/* Handle sys events, ignore button releases */
default:
- if(default_event_handler(button) || !(button & BUTTON_REL))
+ if(default_event_handler(button) == SYS_USB_CONNECTED ||
+ (!(button & SYS_EVENT) && !(button & BUTTON_REL)))
stop = true;
break;
}