From 85e6fd964bd8595dc08859e47dc5ba10c9f9cd15 Mon Sep 17 00:00:00 2001 From: Aarni Koskela Date: Thu, 11 Apr 2024 08:45:24 +0300 Subject: [PATCH] Register settings before Script.__init__() Should fix #754 --- sd_dynamic_prompts/dynamic_prompting.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sd_dynamic_prompts/dynamic_prompting.py b/sd_dynamic_prompts/dynamic_prompting.py index fe0caa9b..f8367425 100644 --- a/sd_dynamic_prompts/dynamic_prompting.py +++ b/sd_dynamic_prompts/dynamic_prompting.py @@ -103,7 +103,6 @@ def __init__(self): callbacks.register_prompt_writer(self._prompt_writer) callbacks.register_on_infotext_pasted() - callbacks.register_settings() callbacks.register_wildcards_tab(self._wildcard_manager) def title(self): @@ -545,3 +544,6 @@ def process( original_negative_hr_prompt, original_negative_prompt, ) + + +callbacks.register_settings() # Settings need to be registered early, see #754.