second appearance

This commit is contained in:
AUTOMATIC1111 2023-08-19 08:04:48 +03:00
parent e7a044a2d1
commit f739e3e05d

View File

@ -289,7 +289,7 @@ class ScriptBuiltinUI(Script):
"""helper function to generate id for a HTML element, constructs final id out of tab and user-supplied item_id"""
need_tabname = self.show(True) == self.show(False)
tabname = ('img2img' if self.is_img2img else 'txt2txt') + "_" if need_tabname else ""
tabname = ('img2img' if self.is_img2img else 'txt2img') + "_" if need_tabname else ""
return f'{tabname}{item_id}'