Provide a busy indicator if we're processing a long prompt and make the

stop button work in the middle of processing a long prompt as well.
This commit is contained in:
Adam Treat
2023-04-12 11:39:43 -04:00
parent 89dff7812b
commit c183702aa4
3 changed files with 18 additions and 3 deletions

View File

@@ -310,7 +310,7 @@ Window {
focus: false
padding: 20
font.pixelSize: 24
cursorVisible: currentResponse ? LLM.responseInProgress : false
cursorVisible: currentResponse ? (LLM.response !== "" ? LLM.responseInProgress : false) : false
cursorPosition: text.length
background: Rectangle {
color: name === qsTr("Response: ") ? "#444654" : "#343541"
@@ -318,6 +318,15 @@ Window {
leftPadding: 100
BusyIndicator {
anchors.left: parent.left
anchors.leftMargin: 90
anchors.top: parent.top
anchors.topMargin: 5
visible: currentResponse && LLM.response === "" && LLM.responseInProgress
running: currentResponse && LLM.response === "" && LLM.responseInProgress
}
Rectangle {
anchors.left: parent.left
anchors.top: parent.top