mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2024-09-11 21:27:37 +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
|
model: ModelList.installedModels
|
||||||
valueRole: "id"
|
valueRole: "id"
|
||||||
textRole: "name"
|
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 {
|
contentItem: Text {
|
||||||
leftPadding: 10
|
leftPadding: 10
|
||||||
rightPadding: 20
|
rightPadding: 20
|
||||||
|
Loading…
Reference in New Issue
Block a user