feat: reload all inpaint modes in enhance tabs when preset is changed and inpaint_mode is set

This commit is contained in:
Manuel Schmid
2024-06-30 20:52:57 +02:00
parent dbbe42ed30
commit 7068250a99
2 changed files with 23 additions and 10 deletions
+4 -1
View File
@@ -166,10 +166,13 @@ def get_inpaint_method(key: str, fallback: str | None, source_dict: dict, result
h = source_dict.get(key, source_dict.get(fallback, default))
assert isinstance(h, str) and h in modules.flags.inpaint_options
results.append(h)
for i in range(modules.config.default_enhance_tabs):
results.append(h)
return h
except:
results.append(gr.update())
return None
for i in range(modules.config.default_enhance_tabs):
results.append(gr.update())
def get_adm_guidance(key: str, fallback: str | None, source_dict: dict, results: list, default=None):