Add a label to the model loading visual indicator.

This commit is contained in:
Adam Treat 2023-05-30 18:24:26 -04:00
parent 912cb2a842
commit 7aed367c68

View File

@ -158,13 +158,27 @@ Window {
} }
} }
BusyIndicator { Item {
anchors.centerIn: parent anchors.centerIn: parent
visible: !currentChat.isModelLoaded && !currentChat.isServer visible: !currentChat.isModelLoaded && !currentChat.isServer
running: !currentChat.isModelLoaded && !currentChat.isServer width: childrenRect.width
Accessible.role: Accessible.Animation height: childrenRect.height
Accessible.name: qsTr("Busy indicator") Row {
Accessible.description: qsTr("Displayed when the model is loading") spacing: 5
BusyIndicator {
anchors.verticalCenter: parent.verticalCenter
running: parent.visible
Accessible.role: Accessible.Animation
Accessible.name: qsTr("Busy indicator")
Accessible.description: qsTr("Displayed when the model is loading")
}
Label {
anchors.verticalCenter: parent.verticalCenter
text: qsTr("Loading model...")
color: theme.mutedTextColor
}
}
} }
} }