Update images_history.py
parent
71900dcd6f
commit
c3e21b34de
|
|
@ -44,9 +44,9 @@ def reduplicative_file_move(src, dst):
|
|||
def save_image(file_name):
|
||||
if file_name is not None and os.path.exists(file_name):
|
||||
reduplicative_file_move(file_name, opts.outdir_save)
|
||||
return "<div style='color:#999'>Moved to Favorites</div>"
|
||||
else
|
||||
return "<div style='color:#999'>Image not found</div>"
|
||||
return "<div style='color:#999'>Moved to favorites</div>"
|
||||
else:
|
||||
return "<div style='color:#999'>Image not found (may have been already moved)</div>"
|
||||
|
||||
def delete_image(delete_num, name, filenames, image_index, visible_num):
|
||||
if name == "":
|
||||
|
|
@ -226,7 +226,7 @@ def create_tab(tabname):
|
|||
img_file_time= gr.HTML()
|
||||
with gr.Row(elem_id=tabname + "_images_history_button_panel") as button_panel:
|
||||
if tabname != faverate_tab_name:
|
||||
save_btn = gr.Button('Move to Favorites')
|
||||
save_btn = gr.Button('Move to favorites')
|
||||
try:
|
||||
send_to_buttons = modules.generation_parameters_copypaste.create_buttons(["txt2img", "img2img", "inpaint", "extras"])
|
||||
except:
|
||||
|
|
|
|||
Loading…
Reference in New Issue