Don't allow setting an invalid prompt template.

This commit is contained in:
Adam Treat 2023-06-27 14:52:44 -04:00
parent 0780393d00
commit b56cc61ca2

View File

@ -566,6 +566,8 @@ Dialog {
padding: 10
wrapMode: TextArea.Wrap
onTextChanged: {
if (settings.promptTemplate.indexOf("%1") === -1)
return;
settings.promptTemplate = text
settings.sync()
}