Silence warning.

This commit is contained in:
Adam Treat 2023-04-27 11:44:41 -04:00
parent a3253c4ab1
commit 80bcbcd137

View File

@ -687,7 +687,7 @@ Window {
x: globalPoint.x x: globalPoint.x
y: globalPoint.y y: globalPoint.y
property string text: currentResponse ? LLM.response : (value ? value : "") property string text: currentResponse ? LLM.response : (value ? value : "")
response: newResponse === "" ? text : newResponse response: newResponse === undefined || newResponse === "" ? text : newResponse
onAccepted: { onAccepted: {
var responseHasChanged = response !== text && response !== newResponse var responseHasChanged = response !== text && response !== newResponse
if (thumbsDownState && !thumbsUpState && !responseHasChanged) if (thumbsDownState && !thumbsUpState && !responseHasChanged)