mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-06-23 05:58:48 +00:00
Various fixes to remove unnecessary warnings.
This commit is contained in:
parent
e6f5d88f17
commit
580aceb2b3
@ -881,12 +881,7 @@ bool Database::addFolderToWatch(const QString &path)
|
|||||||
#if defined(DEBUG)
|
#if defined(DEBUG)
|
||||||
qDebug() << "addFolderToWatch" << path;
|
qDebug() << "addFolderToWatch" << path;
|
||||||
#endif
|
#endif
|
||||||
|
return m_watcher->addPath(path);
|
||||||
if (!m_watcher->addPath(path)) {
|
|
||||||
qWarning() << "ERROR: Cannot add path to file watcher:" << path;
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Database::removeFolderFromWatch(const QString &path)
|
bool Database::removeFolderFromWatch(const QString &path)
|
||||||
@ -894,11 +889,7 @@ bool Database::removeFolderFromWatch(const QString &path)
|
|||||||
#if defined(DEBUG)
|
#if defined(DEBUG)
|
||||||
qDebug() << "removeFolderFromWatch" << path;
|
qDebug() << "removeFolderFromWatch" << path;
|
||||||
#endif
|
#endif
|
||||||
if (!m_watcher->removePath(path)) {
|
return m_watcher->removePath(path);
|
||||||
qWarning() << "ERROR: Cannot remove path from file watcher:" << path;
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Database::retrieveFromDB(const QString &uid, const QList<QString> &collections, const QString &text, int retrievalSize)
|
void Database::retrieveFromDB(const QString &uid, const QList<QString> &collections, const QString &text, int retrievalSize)
|
||||||
|
@ -632,11 +632,8 @@ Window {
|
|||||||
|
|
||||||
onLinkActivated: function (link) {
|
onLinkActivated: function (link) {
|
||||||
if (!link.startsWith("context://"))
|
if (!link.startsWith("context://"))
|
||||||
return;
|
return
|
||||||
|
|
||||||
console.log("link " + link);
|
|
||||||
var integer = parseInt(link.split("://")[1]);
|
var integer = parseInt(link.split("://")[1]);
|
||||||
console.log("context is" + referencesContext[integer - 1]);
|
|
||||||
referenceContextDialog.text = referencesContext[integer - 1];
|
referenceContextDialog.text = referencesContext[integer - 1];
|
||||||
referenceContextDialog.open();
|
referenceContextDialog.open();
|
||||||
}
|
}
|
||||||
|
@ -36,7 +36,7 @@ Item {
|
|||||||
FolderDialog {
|
FolderDialog {
|
||||||
id: folderDialog
|
id: folderDialog
|
||||||
title: "Please choose a directory"
|
title: "Please choose a directory"
|
||||||
currentFolder: StandardPaths.writableLocation(StandardPaths.DocumentsLocation)
|
currentFolder: StandardPaths.writableLocation(StandardPaths.HomeLocation)
|
||||||
onAccepted: {
|
onAccepted: {
|
||||||
root.folder_path = selectedFolder
|
root.folder_path = selectedFolder
|
||||||
}
|
}
|
||||||
|
@ -21,8 +21,6 @@ Dialog {
|
|||||||
|
|
||||||
Row {
|
Row {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
width: childrenRect.width
|
|
||||||
height: childrenRect.height
|
|
||||||
spacing: 20
|
spacing: 20
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
|
Loading…
Reference in New Issue
Block a user