From 2fc8ed78e446ced4b352da2bc6281c6567dcce87 Mon Sep 17 00:00:00 2001 From: Bill Ferguson Date: Mon, 3 Jul 2023 23:44:13 -0400 Subject: [PATCH] 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. --- tools/script_manager.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/script_manager.lua b/tools/script_manager.lua index 0ace779..78909fd 100644 --- a/tools/script_manager.lua +++ b/tools/script_manager.lua @@ -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