Commit 940c5685 authored by Matthieu Gallien's avatar Matthieu Gallien 🎵
Browse files

when using Baloo does not watch for changes itself

rely mostly on Baloo for changes notifications (not complete)

CCBUG: 409587
parent 5e39a543
Pipeline #51203 passed with stage
in 9 minutes and 38 seconds
......@@ -170,12 +170,12 @@ void LocalBalooFileListing::newBalooFile(const QString &fileName)
auto newFile = QUrl::fromLocalFile(fileName);
auto newTrack = scanOneFile(newFile, scanFileInfo, WatchChangedDirectories | WatchChangedFiles);
auto newTrack = scanOneFile(newFile, scanFileInfo, DoNotWatchFileSystemChanges);
if (newTrack.isValid()) {
QFileInfo newFileInfo(fileName);
addFileInDirectory(newFile, QUrl::fromLocalFile(newFileInfo.absoluteDir().absolutePath()), WatchChangedDirectories | WatchChangedFiles);
addFileInDirectory(newFile, QUrl::fromLocalFile(newFileInfo.absoluteDir().absolutePath()), DoNotWatchFileSystemChanges);
emitNewFiles({newTrack});
}
......@@ -401,9 +401,9 @@ void LocalBalooFileListing::triggerRefreshOfContent()
const auto currentDirectory = QUrl::fromLocalFile(scanFileInfo.absoluteDir().absolutePath());
addFileInDirectory(newFileUrl, currentDirectory, WatchChangedDirectories | WatchChangedFiles);
addFileInDirectory(newFileUrl, currentDirectory, DoNotWatchFileSystemChanges);
const auto &newTrack = scanOneFile(newFileUrl, scanFileInfo, WatchChangedDirectories | WatchChangedFiles);
const auto &newTrack = scanOneFile(newFileUrl, scanFileInfo, DoNotWatchFileSystemChanges);
if (newTrack.isValid()) {
newFiles.push_back(newTrack);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment