From e940c218cd77036be5b79bbad84db8689e90efd8 Mon Sep 17 00:00:00 2001 From: Knutwurst <36196269+knutwurst@users.noreply.github.com> Date: Mon, 29 May 2023 20:40:27 +0200 Subject: [PATCH] Do not remove current selection if Special Menu is enabled, so items can be tapped multiple times. --- .../src/lcd/extui/knutwurst/anycubic_touchscreen.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Marlin/src/lcd/extui/knutwurst/anycubic_touchscreen.cpp b/Marlin/src/lcd/extui/knutwurst/anycubic_touchscreen.cpp index 492759e4..be91a997 100755 --- a/Marlin/src/lcd/extui/knutwurst/anycubic_touchscreen.cpp +++ b/Marlin/src/lcd/extui/knutwurst/anycubic_touchscreen.cpp @@ -1030,9 +1030,13 @@ void AnycubicTouchscreenClass::RenderCurrentFileList() { uint16_t selectedNumber = 0; - currentTouchscreenSelection[0] = 0; - currentFileOrDirectory[0] = 0; FileList currentFileList; + currentFileOrDirectory[0] = 0; + + if (SpecialMenu == false) { + currentTouchscreenSelection[0] = 0; + } + SENDLINE_PGM("FN "); // Filelist start @@ -1894,8 +1898,9 @@ void AnycubicTouchscreenClass::RenderCurrentFolder(uint16_t selectedNumber) { } } } - if (SpecialMenu == false) + if (SpecialMenu == false) { currentTouchscreenSelection[0] = 0; + } #endif // ifdef SDSUPPORT break;