mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2024-10-26 22:00:32 +03:00
Don't erase the settings, but ignore them.
Signed-off-by: Adam Treat <treat.adam@gmail.com>
This commit is contained in:
parent
f36a2874eb
commit
a6a3e0048a
@ -1560,13 +1560,10 @@ void ModelList::updateModelsFromSettings()
|
|||||||
if (contains(id))
|
if (contains(id))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
// If we can't find the corresponding file, then delete it from settings as this reflects a
|
// If we can't find the corresponding file, then ignore it as this reflects a stale model.
|
||||||
// stale model. The file could have been deleted manually by the user for instance.
|
// The file could have been deleted manually by the user for instance or temporarily renamed.
|
||||||
if (!settings.contains(g + "/filename") || !modelExists(settings.value(g + "/filename").toString())) {
|
if (!settings.contains(g + "/filename") || !modelExists(settings.value(g + "/filename").toString()))
|
||||||
settings.remove(g);
|
|
||||||
settings.sync();
|
|
||||||
continue;
|
continue;
|
||||||
}
|
|
||||||
|
|
||||||
addModel(id);
|
addModel(id);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user