mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-09-05 18:40:50 +00:00
Provide an error dialog if for any reason we can't access the settings file.
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
#include <QFile>
|
||||
#include <QProcess>
|
||||
#include <QResource>
|
||||
#include <QSettings>
|
||||
#include <fstream>
|
||||
|
||||
class MyLLM: public LLM { };
|
||||
@@ -48,7 +49,13 @@ LLM::LLM()
|
||||
#endif
|
||||
|
||||
m_compatHardware = minimal;
|
||||
emit compatHardwareChanged();
|
||||
}
|
||||
|
||||
bool LLM::hasSettingsAccess() const
|
||||
{
|
||||
QSettings settings;
|
||||
settings.sync();
|
||||
return settings.status() == QSettings::NoError;
|
||||
}
|
||||
|
||||
bool LLM::checkForUpdates() const
|
||||
|
Reference in New Issue
Block a user