mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2024-11-05 04:12:29 +03:00
modellist: work around filtered item models getting out of sync (#2545)
This fixes an issue with the "Clone" button producing a page of blank settings. Signed-off-by: Jared Van Bortel <jared@nomic.ai>
This commit is contained in:
parent
cd100c8339
commit
30692a2dfc
@ -980,6 +980,12 @@ void ModelList::updateData(const QString &id, const QVector<QPair<int, QVariant>
|
||||
}
|
||||
}
|
||||
emit dataChanged(createIndex(index, 0), createIndex(index, 0));
|
||||
|
||||
// FIXME(jared): for some reason these don't update correctly when the source model changes, so we explicitly invalidate them
|
||||
m_selectableModels->invalidate();
|
||||
m_installedModels->invalidate();
|
||||
m_downloadableModels->invalidate();
|
||||
|
||||
emit userDefaultModelListChanged();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user