mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 17:24:32 +02:00
update todo/changelog
This commit is contained in:
@@ -20,9 +20,9 @@ def select_style(name):
|
||||
def save_style(name, prompt, negative_prompt):
|
||||
if not name:
|
||||
return gr.update(visible=False)
|
||||
style = styles.PromptStyle(name, prompt, negative_prompt)
|
||||
style = styles.Style(name, prompt, negative_prompt)
|
||||
shared.prompt_styles.styles[style.name] = style
|
||||
shared.prompt_styles.save_styles(shared.styles_filename)
|
||||
shared.prompt_styles.save_styles('')
|
||||
return gr.update(visible=True)
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ def delete_style(name):
|
||||
if name == "":
|
||||
return
|
||||
shared.prompt_styles.styles.pop(name, None)
|
||||
shared.prompt_styles.save_styles(shared.styles_filename)
|
||||
shared.prompt_styles.save_styles('')
|
||||
return '', '', ''
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user