fix: reference unique Textbox using set instead of list

Fixes #19.

When using PNG Info Send to txt2img/img2img, it will re-create the
entire tab for that workflow. This means that Textbox gets re-created.
On creation, the Textbox is added to the prompts to format, which makes
the old ones stale. Since there's excess, it also results in an uncaught
error.

Solution is to use a set instead of a list to hold the Textbox's to
format. I speculate the components have an internal check to ensure
they don't overlap, perhaps by checking `elem_id` or something.
Regardless, fixed.
main v0.4.5
uwidev 2024-08-16 11:49:40 -07:00
parent 3c0d685004
commit 61d34f7e3e
1 changed files with 544 additions and 539 deletions

File diff suppressed because it is too large Load Diff