Fix models.json for spanning multiple lines with string.

This commit is contained in:
Adam Treat
2023-06-26 21:35:56 -04:00
parent c24ad02a6a
commit 8558fb4297
2 changed files with 22 additions and 111 deletions

View File

@@ -206,12 +206,6 @@ Window {
valueRole: "filename"
textRole: "name"
property string currentModelName: ""
Timer {
id: startupTimer
interval: 3000 // 3 seconds
running: true
repeat: false
}
function updateCurrentModelName() {
// During application startup the model names might not be processed yet, so don't
// set the combobox text until this is done OR the timer has timed out
@@ -220,6 +214,15 @@ Window {
var info = ModelList.modelInfo(currentChat.modelInfo.filename);
comboBox.currentModelName = info.name !== "" ? info.name : info.filename;
}
Timer {
id: startupTimer
interval: 3000 // 3 seconds
running: true
repeat: false
onTriggered: {
comboBox.updateCurrentModelName();
}
}
Connections {
target: ModelList
function onModelHasNamesChanged() {