mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-06-26 07:23:38 +00:00
modellist: fix missing fname in modelsJsonCacheFile() (#3072)
Signed-off-by: Jared Van Bortel <jared@nomic.ai>
This commit is contained in:
parent
7dbb3d298a
commit
1d3f3a63a3
@ -1347,7 +1347,7 @@ static std::optional<QFile> modelsJsonCacheFile()
|
||||
if (auto path = QStandardPaths::locate(loc, modelsJsonFname); !path.isEmpty())
|
||||
return std::make_optional<QFile>(path);
|
||||
if (auto path = QStandardPaths::writableLocation(loc); !path.isEmpty())
|
||||
return std::make_optional<QFile>(path);
|
||||
return std::make_optional<QFile>(u"%1/%2"_s.arg(path, modelsJsonFname));
|
||||
return std::nullopt;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user