AUTOMATIC1111 / stable-diffusion-webui-extensions

Extension index for stable-diffusion-webui
502 stars 266 forks source link

add sd-webui-prevent-interruption #331

Closed light-and-ray closed 4 months ago

light-and-ray commented 4 months ago

Info

A switch in page footer to prevent user from accidental interrupting

https://github.com/light-and-ray/sd-webui-prevent-interruption

Checklist:

light-and-ray commented 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

w-e-w commented 4 months ago

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

light-and-ray commented 4 months ago

Ah I see, it because I squashed window to make an compact screenshot