Recast: allow closing the testcase window

If the testcase window was opened, there was no way to close it without opening a test case. This patch allows you to toggle it.
This commit is contained in:
Kawe Mazidjatari 2024-07-09 16:39:22 +02:00
parent f843c69672
commit 6fd9a5b936

View File

@ -546,9 +546,11 @@ int not_main(int argc, char** argv)
} }
else if (event.key.keysym.sym == SDLK_t) else if (event.key.keysym.sym == SDLK_t)
{ {
showLevels = false; showLevels ^= false;
showEditor = false; showEditor ^= false;
showTestCases = true; showTestCases ^= true;
if (showTestCases)
scanDirectory(testCasesFolder, ".txt", files); scanDirectory(testCasesFolder, ".txt", files);
} }
else if (event.key.keysym.sym == SDLK_TAB) else if (event.key.keysym.sym == SDLK_TAB)