ImgGen: default to selected style name on save click
| @@ -728,7 +728,8 @@ async function onDeleteStyleClick() { | ||
| 728 | 728 | } |
| 729 | 729 | |
| 730 | 730 | async 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); | |
| 732 | 733 | |
| 733 | 734 | if (!userInput) { |
| 734 | 735 | return; |