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)
|
||||
qDebug() << "addFolderToWatch" << path;
|
||||
#endif
|
||||
|
||||
if (!m_watcher->addPath(path)) {
|
||||
qWarning() << "ERROR: Cannot add path to file watcher:" << path;
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return m_watcher->addPath(path);
|
||||
}
|
||||
|
||||
bool Database::removeFolderFromWatch(const QString &path)
|
||||
@ -894,11 +889,7 @@ bool Database::removeFolderFromWatch(const QString &path)
|
||||
#if defined(DEBUG)
|
||||
qDebug() << "removeFolderFromWatch" << path;
|
||||
#endif
|
||||
if (!m_watcher->removePath(path)) {
|
||||
qWarning() << "ERROR: Cannot remove path from file watcher:" << path;
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return m_watcher->removePath(path);
|
||||
}
|
||||
|
||||
void Database::retrieveFromDB(const QString &uid, const QList<QString> &collections, const QString &text, int retrievalSize)
|
||||
|
@ -632,11 +632,8 @@ Window {
|
||||
|
||||
onLinkActivated: function (link) {
|
||||
if (!link.startsWith("context://"))
|
||||
return;
|
||||
|
||||
console.log("link " + link);
|
||||
return
|
||||
var integer = parseInt(link.split("://")[1]);
|
||||
console.log("context is" + referencesContext[integer - 1]);
|
||||
referenceContextDialog.text = referencesContext[integer - 1];
|
||||
referenceContextDialog.open();
|
||||
}
|
||||
|
@ -36,7 +36,7 @@ Item {
|
||||
FolderDialog {
|
||||
id: folderDialog
|
||||
title: "Please choose a directory"
|
||||
currentFolder: StandardPaths.writableLocation(StandardPaths.DocumentsLocation)
|
||||
currentFolder: StandardPaths.writableLocation(StandardPaths.HomeLocation)
|
||||
onAccepted: {
|
||||
root.folder_path = selectedFolder
|
||||
}
|
||||
|
@ -21,8 +21,6 @@ Dialog {
|
||||
|
||||
Row {
|
||||
anchors.centerIn: parent
|
||||
width: childrenRect.width
|
||||
height: childrenRect.height
|
||||
spacing: 20
|
||||
|
||||
Text {
|
||||
|
Loading…
Reference in New Issue
Block a user