mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 01:04:32 +02:00
Fix empty prompt overriding
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user