mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-09-13 06:19:20 +00:00
Fix models.json for spanning multiple lines with string.
This commit is contained in:
@@ -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() {
|
||||
|
Reference in New Issue
Block a user