Fix crasher with layer count

Signed-off-by: Adam Treat <treat.adam@gmail.com>
This commit is contained in:
Adam Treat 2024-02-26 08:38:32 -05:00 committed by AT
parent 72474a2efa
commit 17a2cdbe35

View File

@ -146,6 +146,7 @@ void ModelInfo::setGpuLayers(int l)
int ModelInfo::maxGpuLayers() const
{
if (!installed) return -1;
if (isOnline) return -1;
if (m_maxGpuLayers != -1) return m_maxGpuLayers;
auto path = (dirpath + filename()).toStdString();