tools/script_manager.lua - added check to ensure script_data.show() runction

was passed as part of the script_data table
                           before trying to use it. Fixes #418.
This commit is contained in:
Bill Ferguson
2023-07-03 23:44:13 -04:00
parent 236b25a235
commit 2fc8ed78e4

View File

@@ -397,7 +397,7 @@ local function activate(script)
if err ~= true then
log.msg(log.debug, "got lib data")
script.data = err
if script.data.destroy_method and script.data.destroy_method == "hide" then
if script.data.destroy_method and script.data.destroy_method == "hide" and script.data.show then
script.data.show()
end
else