mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-06-20 20:53:23 +00:00
Update gpt4all-chat/download.cpp
Co-authored-by: Jared Van Bortel <jared@nomic.ai> Signed-off-by: AT <manyoso@users.noreply.github.com>
This commit is contained in:
parent
08b5dc8598
commit
8474d76fec
@ -109,9 +109,7 @@ void Download::downloadModel(const QString &modelFile)
|
|||||||
= QString("ERROR: Could not open temp file: %1 %2").arg(tempFile->fileName()).arg(modelFile);
|
= QString("ERROR: Could not open temp file: %1 %2").arg(tempFile->fileName()).arg(modelFile);
|
||||||
qWarning() << error;
|
qWarning() << error;
|
||||||
clearRetry(modelFile);
|
clearRetry(modelFile);
|
||||||
QVector<QPair<int, QVariant>> data;
|
ModelList::globalInstance()->updateDataByFilename(modelFile, {{ ModelList::DownloadErrorRole, error }});
|
||||||
data.append(qMakePair(ModelList::DownloadErrorRole, error));
|
|
||||||
ModelList::globalInstance()->updateDataByFilename(modelFile, data);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
tempFile->flush();
|
tempFile->flush();
|
||||||
|
Loading…
Reference in New Issue
Block a user