aboutsummaryrefslogtreecommitdiffstats
path: root/modules/scripts.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-08-19 05:03:40 +0000
committerGitHub <noreply@github.com>2023-08-19 05:03:40 +0000
commite7a044a2d1b104ddc22f3911e797193347b8ecbc (patch)
tree117f108d0a198e8986e173c418d6d8dff3dba6cf /modules/scripts.py
parentca72db23d2caeea0c6db915a1050a7dca6082d5d (diff)
parent64d5fa1efd94d98ee6c97d31e85e294107b730ec (diff)
downloadstable-diffusion-webui-gfx803-e7a044a2d1b104ddc22f3911e797193347b8ecbc.tar.gz
stable-diffusion-webui-gfx803-e7a044a2d1b104ddc22f3911e797193347b8ecbc.tar.bz2
stable-diffusion-webui-gfx803-e7a044a2d1b104ddc22f3911e797193347b8ecbc.zip
Merge pull request #12653 from S-Del/fix/typo
fix typo `txt2txt` -> `txt2img`
Diffstat (limited to 'modules/scripts.py')
-rw-r--r--modules/scripts.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/scripts.py b/modules/scripts.py
index fcab5d3a..88c3c972 100644
--- a/modules/scripts.py
+++ b/modules/scripts.py
@@ -269,7 +269,7 @@ class Script:
"""helper function to generate id for a HTML element, constructs final id out of script name, tab and user-supplied item_id"""
need_tabname = self.show(True) == self.show(False)
- tabkind = 'img2img' if self.is_img2img else 'txt2txt'
+ tabkind = 'img2img' if self.is_img2img else 'txt2img'
tabname = f"{tabkind}_" if need_tabname else ""
title = re.sub(r'[^a-z_0-9]', '', re.sub(r'\s', '_', self.title().lower()))