Skip to content

Commit

Permalink
Don't clear installed models.
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Treat <treat.adam@gmail.com>
  • Loading branch information
manyoso committed Mar 11, 2024
1 parent e2f64f8 commit 5ed9aea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gpt4all-chat/modellist.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1712,7 +1712,7 @@ void ModelList::clearDiscoveredModels()
{
QMutexLocker locker(&m_mutex);
for (ModelInfo *info : m_models)
if (info->isDiscovered())
if (info->isDiscovered() && !info->installed)
infos.append(*info);
}
for (ModelInfo &info : infos)
Expand Down

0 comments on commit 5ed9aea

Please sign in to comment.