mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2024-09-11 13:25:35 +03:00
Don't clear installed models.
Signed-off-by: Adam Treat <treat.adam@gmail.com>
This commit is contained in:
parent
e2f64f89c9
commit
5ed9aea410
@ -1712,7 +1712,7 @@ void ModelList::clearDiscoveredModels()
|
|||||||
{
|
{
|
||||||
QMutexLocker locker(&m_mutex);
|
QMutexLocker locker(&m_mutex);
|
||||||
for (ModelInfo *info : m_models)
|
for (ModelInfo *info : m_models)
|
||||||
if (info->isDiscovered())
|
if (info->isDiscovered() && !info->installed)
|
||||||
infos.append(*info);
|
infos.append(*info);
|
||||||
}
|
}
|
||||||
for (ModelInfo &info : infos)
|
for (ModelInfo &info : infos)
|
||||||
|
Loading…
Reference in New Issue
Block a user