disabled open folder button on All tab
I need to investigate further to determine the best way to handle the button when an image is selected. For now it's disabled entirely on the All tab since it's non-functional.pull/200/head
parent
5c28f97770
commit
26ab8d4e96
|
|
@ -1130,7 +1130,7 @@ def create_tab(tab: ImageBrowserTab, current_gr_tab: gr.Tab):
|
||||||
|
|
||||||
if standard_ui:
|
if standard_ui:
|
||||||
dir_name = str(Path(dir_name))
|
dir_name = str(Path(dir_name))
|
||||||
if not os.path.exists(dir_name) and os.path.basename(os.path.normpath(dir_name)) != "All":
|
if not os.path.exists(dir_name) and tab.name != "All":
|
||||||
os.makedirs(dir_name)
|
os.makedirs(dir_name)
|
||||||
|
|
||||||
with gr.Row():
|
with gr.Row():
|
||||||
|
|
@ -1233,10 +1233,13 @@ def create_tab(tab: ImageBrowserTab, current_gr_tab: gr.Tab):
|
||||||
with gr.Row() as filetime_panel:
|
with gr.Row() as filetime_panel:
|
||||||
img_file_time= gr.HTML()
|
img_file_time= gr.HTML()
|
||||||
with gr.Row() as open_folder_panel:
|
with gr.Row() as open_folder_panel:
|
||||||
open_folder_button = gr.Button(folder_symbol, visible=standard_ui or others_dir)
|
if tab.name == "All":
|
||||||
gr.HTML(" ")
|
open_folder_button = gr.Button(folder_symbol, visible=False)
|
||||||
gr.HTML(" ")
|
else:
|
||||||
gr.HTML(" ")
|
open_folder_button = gr.Button(folder_symbol, visible=standard_ui or others_dir)
|
||||||
|
gr.HTML(" ")
|
||||||
|
gr.HTML(" ")
|
||||||
|
gr.HTML(" ")
|
||||||
with gr.Row(elem_id=f"{tab.base_tag}_image_browser_button_panel", visible=False) as button_panel:
|
with gr.Row(elem_id=f"{tab.base_tag}_image_browser_button_panel", visible=False) as button_panel:
|
||||||
with gr.Column():
|
with gr.Column():
|
||||||
with gr.Row():
|
with gr.Row():
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue