GUI: fix .cfgc/.cfgk extension duplication

This commit is contained in:
tildearrow 2022-05-24 12:46:51 -05:00
parent 3932a82d14
commit 979cb63c5b
1 changed files with 1 additions and 1 deletions

View File

@ -1842,7 +1842,7 @@ void FurnaceGUI::processDrags(int dragX, int dragY) {
for (char& i: lowerCase) { \
if (i>='A' && i<='Z') i+='a'-'A'; \
} \
if (lowerCase.size()<4 || lowerCase.rfind(x)!=lowerCase.size()-4) { \
if (lowerCase.size()<strlen(x) || lowerCase.rfind(x)!=lowerCase.size()-strlen(x)) { \
fileName+=x; \
}