Closed light-and-ray closed 4 months ago
Hmm, there is no script_callback
for moment when shared.demo
is initialized, but not launched, so it's not possible for extensions to register their own python on ui loaded callbacks. (block.load(...)
doesn't work in my code, block must be shared.demo
) Should I add them and make PR into sd-webui?
P.s. btw even with this callback on a button this doesn't work for some reason. Switch elements are very hard
lol your screenshot make me thought that the button will appear at the center right of the footer but instead it appears on the far right corner because my theme there's a icon there and I just not noticed your button for a long while I was very confused and thought that you extension was broken somehow
Ah I see, it because I squashed window to make an compact screenshot
Info
A switch in page footer to prevent user from accidental interrupting
https://github.com/light-and-ray/sd-webui-prevent-interruption
Checklist:
Readme.md
index.json
andextension_template.json
have not been modified.entry
is placed in theextensions
directory with the.json
file extension.