ui fix send to inpaint/sketch

Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
Vladimir Mandic
2025-02-09 14:45:36 -05:00
parent 9bd68d30c3
commit b4881ae082
3 changed files with 6 additions and 5 deletions
+1
View File
@@ -34,6 +34,7 @@
- ui use correct timezone for log display
- ui improve settings search behavior
- ui log scroll to bottom
- ui fix send to inpaint/sketch
- modernui add control init image toggle
- outpaint fixes
+2 -2
View File
@@ -127,13 +127,13 @@ function switch_to_img2img(...args) {
return Array.from(arguments);
}
function switch_to_sketch(...args) {
function switch_to_inpaint(...args) {
switchToTab('Image');
switch_to_img2img_tab(1);
return Array.from(arguments);
}
function switch_to_inpaint(...args) {
function switch_to_sketch(...args) {
switchToTab('Image');
switch_to_img2img_tab(2);
return Array.from(arguments);
+3 -3
View File
@@ -56,12 +56,12 @@ def create_ui():
def add_copy_image_controls(tab_name, elem):
with gr.Row(variant="compact", elem_id=f"img2img_copy_to_{tab_name}"):
for title, name in zip(['➠ Image', '➠ Inpaint', '➠ Sketch', '➠ Composite'], ['img2img', 'sketch', 'inpaint', 'composite']):
for title, name in zip(['➠ Image', '➠ Inpaint', '➠ Sketch', '➠ Composite'], ['img2img', 'inpaint', 'sketch', 'composite']):
if name == tab_name:
gr.Button(title, elem_id=f'copy_to_{name}', interactive=False)
gr.Button(title, elem_id=f'{tab_name}_copy_to_{name}', interactive=False)
copy_image_destinations[name] = elem
continue
button = gr.Button(title, elem_id=f'copy_to_{name}')
button = gr.Button(title, elem_id=f'{tab_name}_copy_to_{name}')
copy_image_buttons.append((button, name, elem))
with gr.Tabs(elem_id="mode_img2img"):