Fix empty prompt overriding

This commit is contained in:
Nolan GILBERT
2025-10-14 15:25:28 +02:00
committed by GitHub
parent db9297244c
commit a0e8b04ec6
@@ -229,6 +229,11 @@ def connect_paste(button, local_paste_fields, input_comp, override_settings_comp
res.append(v)
applied[key] = v
else:
if isinstance(v, str) and v.strip() == '' and key in {'Prompt', 'Negative prompt'}:
debug(f'Paste skip empty: "{key}"')
res.append(gr.update())
skipped[key] = v
continue
if should_skip(key):
debug(f'Paste skip: "{key}"="{v}"')
res.append(gr.update())