Skip to content

Commit 2fc8ed7

Browse files
committed
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 darktable-org#418.
1 parent 236b25a commit 2fc8ed7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/script_manager.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ local function activate(script)
397397
if err ~= true then
398398
log.msg(log.debug, "got lib data")
399399
script.data = err
400-
if script.data.destroy_method and script.data.destroy_method == "hide" then
400+
if script.data.destroy_method and script.data.destroy_method == "hide" and script.data.show then
401401
script.data.show()
402402
end
403403
else

0 commit comments

Comments
 (0)