infotext.py: rename usages in the codebase

This commit is contained in:
AUTOMATIC1111
2024-01-01 13:53:12 +03:00
parent c5496c7646
commit d859cec696
14 changed files with 25 additions and 25 deletions

View File

@@ -67,14 +67,14 @@ def reload_hypernetworks():
def get_infotext_names():
from modules import generation_parameters_copypaste, shared
from modules import infotext, shared
res = {}
for info in shared.opts.data_labels.values():
if info.infotext:
res[info.infotext] = 1
for tab_data in generation_parameters_copypaste.paste_fields.values():
for tab_data in infotext.paste_fields.values():
for _, name in tab_data.get("fields") or []:
if isinstance(name, str):
res[name] = 1