summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/tree.c4
-rw-r--r--apps/tree.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/apps/tree.c b/apps/tree.c
index 71af90f017..2d82e518e2 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -1384,6 +1384,10 @@ static bool dirbrowse(const char *root, const int *dirfilter)
#endif
case TREE_MENU:
+#ifdef TREE_MENU_PRE
+ if (lastbutton != TREE_MENU_PRE)
+ break;
+#endif
if (*dirfilter < NUM_FILTER_MODES)
{
lcd_stop_scroll();
diff --git a/apps/tree.h b/apps/tree.h
index f22163ae25..f76df90463 100644
--- a/apps/tree.h
+++ b/apps/tree.h
@@ -87,6 +87,7 @@
#define TREE_RUN (BUTTON_RIGHT | BUTTON_REL)
#define TREE_RUN_PRE BUTTON_RIGHT
#define TREE_MENU (BUTTON_MENU | BUTTON_REPEAT)
+#define TREE_MENU_PRE BUTTON_MENU
#define TREE_WPS (BUTTON_MENU | BUTTON_REL)
#define TREE_WPS_PRE BUTTON_MENU
#define TREE_CONTEXT (BUTTON_RIGHT | BUTTON_REPEAT)