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,10 +546,12 @@ int not_main(int argc, char** argv)
}
else if (event.key.keysym.sym == SDLK_t)
{
showLevels = false;
showEditor = false;
showTestCases = true;
scanDirectory(testCasesFolder, ".txt", files);
showLevels ^= false;
showEditor ^= false;
showTestCases ^= true;
if (showTestCases)
scanDirectory(testCasesFolder, ".txt", files);
}
else if (event.key.keysym.sym == SDLK_TAB)
{