Explorar el Código

ensure that the file to test monitoring is hidden

we create a file inside the sync folder to test file system monitoring

ensure this file is hidden (i.e. has the proper hidden property)

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
Matthieu Gallien hace 2 años
padre
commit
907b35c650
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      src/gui/folderwatcher.cpp

+ 1 - 0
src/gui/folderwatcher.cpp

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