aboutsummaryrefslogtreecommitdiff
path: root/modules/ui.py
diff options
context:
space:
mode:
authorpapuSpartan <mcgpapu@gmail.com>2022-10-20 19:28:58 -0500
committerpapuSpartan <mcgpapu@gmail.com>2022-10-20 19:28:58 -0500
commita3b047b7c74dc6ca07f40aee778997fc1889d72f (patch)
treebef7faf860fc5c0ee7c537a093eff31be8356dbf /modules/ui.py
parenta81651498018f6a0d5144f2ba957f685d7c28028 (diff)
add settings option to toggle button visibility
Diffstat (limited to 'modules/ui.py')
-rw-r--r--modules/ui.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/ui.py b/modules/ui.py
index bde546cc..13c0b4ca 100644
--- a/modules/ui.py
+++ b/modules/ui.py
@@ -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")