mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2024-10-01 01:06:10 -04:00
Remove this signal as unnecessary for now.
This commit is contained in:
parent
e70a1c458b
commit
5f533e76a1
@ -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<QString> &collections, const QString &text)
|
||||
{
|
||||
m_retrieveInProgress = true;
|
||||
m_retrieveResult = QList<QString>();
|
||||
emit retrieveInProgressChanged();
|
||||
emit requestRetrieveFromDB(collections, text);
|
||||
}
|
||||
|
||||
void LocalDocs::retrieveResult(const QList<QString> &result)
|
||||
{
|
||||
m_retrieveInProgress = false;
|
||||
m_retrieveResult = result;
|
||||
emit receivedResult();
|
||||
emit retrieveInProgressChanged();
|
||||
}
|
||||
|
@ -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<QString> result() const { return m_retrieveResult; }
|
||||
void requestRetrieve(const QList<QString> &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<QString> &collections, const QString &text);
|
||||
void receivedResult();
|
||||
void retrieveInProgressChanged();
|
||||
|
||||
private Q_SLOTS:
|
||||
void retrieveResult(const QList<QString> &result);
|
||||
@ -77,7 +74,6 @@ private Q_SLOTS:
|
||||
private:
|
||||
Database *m_database;
|
||||
QList<QString> m_retrieveResult;
|
||||
bool m_retrieveInProgress;
|
||||
|
||||
private:
|
||||
explicit LocalDocs();
|
||||
|
Loading…
Reference in New Issue
Block a user