add settings option to toggle button visibility

This commit is contained in:
papuSpartan
2022-10-20 19:28:58 -05:00
parent a816514980
commit a3b047b7c7
3 changed files with 2 additions and 2 deletions

View File

@@ -509,7 +509,7 @@ def create_toprow(is_img2img):
paste = gr.Button(value=paste_symbol, elem_id="paste")
save_style = gr.Button(value=save_style_symbol, elem_id="style_create")
prompt_style_apply = gr.Button(value=apply_style_symbol, elem_id="style_apply")
trash_prompt = gr.Button(value=trash_prompt_symbol, elem_id="trash_prompt")
trash_prompt = gr.Button(value=trash_prompt_symbol, elem_id="trash_prompt", visible=opts.trash_prompt_visible)
token_counter = gr.HTML(value="<span></span>", elem_id=f"{id_part}_token_counter")
token_button = gr.Button(visible=False, elem_id=f"{id_part}_token_button")