Commit 836b6463 authored by AUTOMATIC's avatar AUTOMATIC

moved images to

parent b99a47b1
This diff is collapsed.
......@@ -9,7 +9,8 @@ class Script(scripts.Script):
def title(self):
return "Custom code"
def enabled(self):
def show(self, is_img2img):
return cmd_opts.allow_code
def ui(self, is_img2img):
......@@ -18,8 +19,7 @@ class Script(scripts.Script):
return [code]
def run(self, p, code):
if not cmd_opts.allow_code:
return
assert cmd_opts.allow_code, '--allow-code option must be enabled'
display_result_data = [[], -1, ""]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment