diff --git a/gpt4all-chat/localdocs.cpp b/gpt4all-chat/localdocs.cpp index fbe92c36..9bd804b5 100644 --- a/gpt4all-chat/localdocs.cpp +++ b/gpt4all-chat/localdocs.cpp @@ -808,7 +808,6 @@ LocalDocs *LocalDocs::globalInstance() LocalDocs::LocalDocs() : QObject(nullptr) , m_database(new Database) - , m_retrieveInProgress(false) { connect(this, &LocalDocs::requestAddFolder, m_database, &Database::addFolder, Qt::QueuedConnection); @@ -834,16 +833,12 @@ void LocalDocs::removeFolder(const QString &collection, const QString &path) void LocalDocs::requestRetrieve(const QList &collections, const QString &text) { - m_retrieveInProgress = true; m_retrieveResult = QList(); - emit retrieveInProgressChanged(); emit requestRetrieveFromDB(collections, text); } void LocalDocs::retrieveResult(const QList &result) { - m_retrieveInProgress = false; m_retrieveResult = result; emit receivedResult(); - emit retrieveInProgressChanged(); } diff --git a/gpt4all-chat/localdocs.h b/gpt4all-chat/localdocs.h index 74a9eab7..fe2da6a2 100644 --- a/gpt4all-chat/localdocs.h +++ b/gpt4all-chat/localdocs.h @@ -52,7 +52,6 @@ private: class LocalDocs : public QObject { Q_OBJECT - Q_PROPERTY(bool retrieveInProgress READ retrieveInProgress NOTIFY retrieveInProgressChanged) public: static LocalDocs *globalInstance(); @@ -62,14 +61,12 @@ public: QList result() const { return m_retrieveResult; } void requestRetrieve(const QList &collections, const QString &text); - bool retrieveInProgress() const { return m_retrieveInProgress; } Q_SIGNALS: void requestAddFolder(const QString &collection, const QString &path); void requestRemoveFolder(const QString &collection, const QString &path); void requestRetrieveFromDB(const QList &collections, const QString &text); void receivedResult(); - void retrieveInProgressChanged(); private Q_SLOTS: void retrieveResult(const QList &result); @@ -77,7 +74,6 @@ private Q_SLOTS: private: Database *m_database; QList m_retrieveResult; - bool m_retrieveInProgress; private: explicit LocalDocs();