Skip to content

Commit

Permalink
Register settings before Script.__init__()
Browse files Browse the repository at this point in the history
Should fix #754
  • Loading branch information
akx committed Apr 11, 2024
1 parent e8326b5 commit 85e6fd9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sd_dynamic_prompts/dynamic_prompting.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -545,3 +544,6 @@ def process(
original_negative_hr_prompt,
original_negative_prompt,
)


callbacks.register_settings() # Settings need to be registered early, see #754.

0 comments on commit 85e6fd9

Please sign in to comment.