From 61d676536190009af65bb56f4e3b067a5cbb7b37 Mon Sep 17 00:00:00 2001 From: chrisbarrera <34655880+chrisbarrera@users.noreply.github.com> Date: Sat, 9 Mar 2024 17:35:10 -0600 Subject: [PATCH] #2024 Update ModelSettings.qml to default model/char settings combobox to the currently selected chat model Signed-off-by: chrisbarrera <34655880+chrisbarrera@users.noreply.github.com> --- gpt4all-chat/qml/ModelSettings.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gpt4all-chat/qml/ModelSettings.qml b/gpt4all-chat/qml/ModelSettings.qml index 4616e433..11f1cdbf 100644 --- a/gpt4all-chat/qml/ModelSettings.qml +++ b/gpt4all-chat/qml/ModelSettings.qml @@ -5,6 +5,7 @@ import QtQuick.Controls.Basic import QtQuick.Layouts import modellist import mysettings +import chatlistmodel MySettingsTab { onRestoreDefaultsClicked: { @@ -42,7 +43,7 @@ MySettingsTab { model: ModelList.installedModels valueRole: "id" textRole: "name" - currentIndex: 0 + currentIndex: comboBox.indexOfValue(ChatListModel.currentChat.modelInfo.id) contentItem: Text { leftPadding: 10 rightPadding: 20