Provide an error dialog if for any reason we can't access the settings file.

This commit is contained in:
Adam Treat
2023-07-12 08:50:21 -04:00
parent e9d42fba35
commit 13b2d47be5
3 changed files with 33 additions and 6 deletions

View File

@@ -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