Posted 20 September 2016 - 04:49 PM
I'm trying to add a 'close' button to my file manager, but when I click on it, it crashes with:
Then it shuts down after a button press. What's weird is that there's nothing at the part of my program where it detects the click that would warrant that error (to my understanding), as that error is usually for entering an invalid argument for term.setBackgroundColor().
Here's the link for the paste. The line that detects the button press on 'close' is line 223. Please help!
window:179: bad argument: string expected, got nil
Then it shuts down after a button press. What's weird is that there's nothing at the part of my program where it detects the click that would warrant that error (to my understanding), as that error is usually for entering an invalid argument for term.setBackgroundColor().
Here's the link for the paste. The line that detects the button press on 'close' is line 223. Please help!
Edited on 20 September 2016 - 02:49 PM