mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-09-07 19:40:21 +00:00
Add a collection immediately and show a placeholder + busy indicator in localdocs settings.
This commit is contained in:
@@ -11,7 +11,8 @@ class LocalDocsModel : public QAbstractListModel
|
||||
public:
|
||||
enum Roles {
|
||||
CollectionRole = Qt::UserRole + 1,
|
||||
FolderPathRole
|
||||
FolderPathRole,
|
||||
InstalledRole
|
||||
};
|
||||
|
||||
explicit LocalDocsModel(QObject *parent = nullptr);
|
||||
@@ -20,6 +21,7 @@ public:
|
||||
QHash<int, QByteArray> roleNames() const override;
|
||||
|
||||
public Q_SLOTS:
|
||||
void addCollectionItem(const CollectionItem &item);
|
||||
void handleCollectionListUpdated(const QList<CollectionItem> &collectionList);
|
||||
|
||||
private:
|
||||
|
Reference in New Issue
Block a user