mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2024-08-17 17:20:40 +03:00
When the current chat has no model use the first index.
Signed-off-by: Adam Treat <treat.adam@gmail.com>
This commit is contained in:
parent
0daf37ab8a
commit
e2f64f89c9
@ -43,7 +43,12 @@ MySettingsTab {
|
||||
model: ModelList.installedModels
|
||||
valueRole: "id"
|
||||
textRole: "name"
|
||||
currentIndex: comboBox.indexOfValue(ChatListModel.currentChat.modelInfo.id)
|
||||
currentIndex: {
|
||||
var i = comboBox.indexOfValue(ChatListModel.currentChat.modelInfo.id);
|
||||
if (i >= 0)
|
||||
return i;
|
||||
return 0;
|
||||
}
|
||||
contentItem: Text {
|
||||
leftPadding: 10
|
||||
rightPadding: 20
|
||||
|
Loading…
Reference in New Issue
Block a user