ImgGen: default to selected style name on save click

8e911af031d2ac609b9f6f1acee72810aa5521e4

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +2 -1Showing whitespace changes
public/scripts/extensions/stable-diffusion/index.js+2 -1
@@ -728,7 +728,8 @@ async function onDeleteStyleClick() {
728728}
729729
730730async function onSaveStyleClick() {
731- const userInput = await callGenericPopup('Enter style name:', POPUP_TYPE.INPUT);
731+ const selectedStyle = extension_settings.sd.style || '';
732+ const userInput = await callGenericPopup(t`Enter style name:`, POPUP_TYPE.INPUT, selectedStyle);
732733
733734 if (!userInput) {
734735 return;