fix typo `txt2txt` -> `txt2img`

This commit is contained in:
S-Del 2023-08-18 22:32:20 +09:00
parent 68f336bd99
commit 64d5fa1efd
1 changed files with 1 additions and 1 deletions

View File

@ -220,7 +220,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()))