Merge pull request #5731 from nextcloud/bugfox/setHiddenFileForFileMonitoringTest

ensure that the file to test monitoring is hidden
This commit is contained in:
Matthieu Gallien 2023-05-25 10:57:50 +02:00 committed by GitHub
commit fecaaa5611
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -133,6 +133,7 @@ void FolderWatcher::startNotificationTestWhenReady()
QFile f(path); QFile f(path);
f.open(QIODevice::WriteOnly | QIODevice::Append); f.open(QIODevice::WriteOnly | QIODevice::Append);
} }
FileSystem::setFileHidden(path, true);
QTimer::singleShot(5000, this, [this]() { QTimer::singleShot(5000, this, [this]() {
if (!_testNotificationPath.isEmpty()) if (!_testNotificationPath.isEmpty())