mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2024-09-11 13:25:35 +03:00
#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:
parent
59f99b7f21
commit
61d6765361
@ -5,6 +5,7 @@ import QtQuick.Controls.Basic
|
|||||||
import QtQuick.Layouts
|
import QtQuick.Layouts
|
||||||
import modellist
|
import modellist
|
||||||
import mysettings
|
import mysettings
|
||||||
|
import chatlistmodel
|
||||||
|
|
||||||
MySettingsTab {
|
MySettingsTab {
|
||||||
onRestoreDefaultsClicked: {
|
onRestoreDefaultsClicked: {
|
||||||
@ -42,7 +43,7 @@ MySettingsTab {
|
|||||||
model: ModelList.installedModels
|
model: ModelList.installedModels
|
||||||
valueRole: "id"
|
valueRole: "id"
|
||||||
textRole: "name"
|
textRole: "name"
|
||||||
currentIndex: 0
|
currentIndex: comboBox.indexOfValue(ChatListModel.currentChat.modelInfo.id)
|
||||||
contentItem: Text {
|
contentItem: Text {
|
||||||
leftPadding: 10
|
leftPadding: 10
|
||||||
rightPadding: 20
|
rightPadding: 20
|
||||||
|
Loading…
Reference in New Issue
Block a user