mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-10-22 00:19:41 +00:00
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:
11
main.qml
11
main.qml
@@ -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
|
||||
|
Reference in New Issue
Block a user