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

@@ -6,12 +6,11 @@
class LLM : public QObject
{
Q_OBJECT
Q_PROPERTY(bool compatHardware READ compatHardware NOTIFY compatHardwareChanged)
public:
static LLM *globalInstance();
bool compatHardware() const { return m_compatHardware; }
Q_INVOKABLE bool hasSettingsAccess() const;
Q_INVOKABLE bool compatHardware() const { return m_compatHardware; }
Q_INVOKABLE bool checkForUpdates() const;
Q_INVOKABLE bool directoryExists(const QString &path) const;
@@ -22,7 +21,6 @@ public:
Q_SIGNALS:
void chatListModelChanged();
void modelListChanged();
void compatHardwareChanged();
private:
bool m_compatHardware;