Don't clear installed models.

Signed-off-by: Adam Treat <treat.adam@gmail.com>
This commit is contained in:
Adam Treat 2024-03-11 14:08:40 -04:00
parent e2f64f89c9
commit 5ed9aea410

View File

@ -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)