#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>
This commit is contained in:
chrisbarrera 2024-03-09 17:35:10 -06:00 committed by AT
parent 59f99b7f21
commit 61d6765361

View File

@ -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