Do not remove current selection if Special Menu is enabled, so items can be tapped multiple times.

This commit is contained in:
Knutwurst
2023-05-29 20:40:27 +02:00
parent 1df0ee59d2
commit e940c218cd

View File

@@ -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;