Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions gpt4all-chat/qml/ModelSettings.qml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import QtQuick
import QtQuick.Controls
import QtQuick.Controls.Basic
import QtQuick.Layouts
import download
import modellist
import mysettings
import chatlistmodel
Expand Down Expand Up @@ -114,10 +115,13 @@ MySettingsTab {

MySettingsDestructiveButton {
id: removeButton
enabled: root.currentModelInfo.isClone
enabled: root.currentModelInfo.isClone || root.currentModelInfo.isCompatibleApi
text: qsTr("Remove")
onClicked: {
ModelList.removeClone(root.currentModelInfo);
if (root.currentModelInfo.isClone)
ModelList.removeClone(root.currentModelInfo);
else
Download.removeModel(root.currentModelInfo.filename);
comboBox.currentIndex = 0;
}
}
Expand Down