Closed mime01 closed 5 months ago
The fix works and solves the crashing problem.
What I'm wondering is what the "correct" way to handle this is.
Do we
Thoughts?
I also thought about adding the script with a no category placeholder (or similar), but then decided to go with the simplest fix so that at least the script manager does not disappear, which is very confusing. But I agree that there is room for improvement.
I came across this when I was going through the example sharing scripts in the documentation, where the script is started directly from the luarc file. In this case, it was not important for the script to be shown in the script manager.
I think I'll go with just the patch. The only way a script can can be in the root folder is if the user puts it there. so they should know.
The script manager crashes if a LUA script was not copied to a subfolder but directly into the LUA directory. The reason is that the regular expression, which among other things extracts the category of the script from its file path, does not match and thus the category is null. To prevent this, a null check has been added.