diff options
Diffstat (limited to 'apps/tree.c')
-rw-r--r-- | apps/tree.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/apps/tree.c b/apps/tree.c index 53797baa40..0616c0f09e 100644 --- a/apps/tree.c +++ b/apps/tree.c | |||
@@ -662,17 +662,19 @@ static bool dirbrowse(void) | |||
662 | } | 662 | } |
663 | #endif | 663 | #endif |
664 | } | 664 | } |
665 | break; | ||
666 | /* ?? | ||
667 | #if defined(CONFIG_CHARGING) && !defined(HAVE_POWEROFF_WHILE_CHARGING) | 665 | #if defined(CONFIG_CHARGING) && !defined(HAVE_POWEROFF_WHILE_CHARGING) |
668 | case TREE_OFF | BUTTON_REPEAT: | 666 | { |
669 | if (charger_inserted()) { | 667 | static int last_off = 0; |
670 | charging_splash(); | 668 | if (current_tick - last_off < 50) { |
671 | restore = true; | 669 | if (charger_inserted()) { |
670 | charging_splash(); | ||
671 | restore = true; | ||
672 | } | ||
672 | } | 673 | } |
673 | break; | 674 | last_off = current_tick; |
675 | } | ||
674 | #endif | 676 | #endif |
675 | */ | 677 | break; /* case ACTION_TREE_STOP: */ |
676 | case ACTION_STD_MENU: | 678 | case ACTION_STD_MENU: |
677 | /* don't enter menu from plugin browser */ | 679 | /* don't enter menu from plugin browser */ |
678 | if (*tc.dirfilter < NUM_FILTER_MODES) | 680 | if (*tc.dirfilter < NUM_FILTER_MODES) |