lllyasviel / stable-diffusion-webui-forge

GNU Affero General Public License v3.0
8.55k stars 838 forks source link

Don't duplicate samplers when adding #2354

Closed wcole3 closed 6 hours ago

wcole3 commented 1 day ago

Simple check to avoid continually adding samplers to list.

As far as I know, the only samplers that add through this method are the Flux Realistic ones, but you can notice them duplicated for every UI reload.

2351

DenOfEquity commented 1 day ago

Nice one; I'd mistakenly assumed this was an issue that had to be solved inside the blockly code. Lines 68 and 69 are better inside the conditional too?

wcole3 commented 23 hours ago

That's probably a good idea, I'll test it out tonight.

wcole3 commented 15 hours ago

No unexpected misbehavior 😁