From f739e3e05d52d6040fec62b561ad37c952ca7d22 Mon Sep 17 00:00:00 2001 From: AUTOMATIC1111 <16777216c@gmail.com> Date: Sat, 19 Aug 2023 08:04:48 +0300 Subject: [PATCH] second appearance --- modules/scripts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/scripts.py b/modules/scripts.py index 88c3c972e..e8518ad0f 100644 --- a/modules/scripts.py +++ b/modules/scripts.py @@ -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}'