stable-diffusion-webui icon indicating copy to clipboard operation
stable-diffusion-webui copied to clipboard

Fix params.txt saving for infotexts modified by process_batch

Open space-nuko opened this issue 2 years ago • 0 comments

Describe what this pull request is trying to achieve.

If something in a process_batch callback modifies the infotext, the changes will not be reflected in params.txt, so they will not be restored if it's recalled later. So I made params.txt be written as late as possible, after all script callbacks have finished running.

Additional notes and description of your changes

N/A

Environment this was tested in

List the environment you have developed / tested this on. As per the contributing page, changes should be able to work on Windows out of the box.

  • OS: Windows
  • Browser: Chrome
  • Graphics card: NVIDIA RTX 3090

Screenshots or videos of your changes

N/A

space-nuko avatar Feb 17 '23 05:02 space-nuko