diff --git a/src/plugins/filemanager/core/dfmplugin-workspace/models/rootinfo.cpp b/src/plugins/filemanager/core/dfmplugin-workspace/models/rootinfo.cpp index 715e3b4de9..dfe6f76440 100644 --- a/src/plugins/filemanager/core/dfmplugin-workspace/models/rootinfo.cpp +++ b/src/plugins/filemanager/core/dfmplugin-workspace/models/rootinfo.cpp @@ -246,7 +246,7 @@ void RootInfo::doWatcherEvent() if (emptyLoopCount >= 5) break; - QThread::msleep(10); + QThread::msleep(20); if (adds.isEmpty() && updates.isEmpty() && removes.isEmpty()) oldtime = timer.elapsed(); @@ -303,6 +303,7 @@ void RootInfo::doWatcherEvent() removes.append(fileUrl); } } + processFileEventRuning = false; // 处理添加文件 if (!removes.isEmpty()) @@ -311,7 +312,6 @@ void RootInfo::doWatcherEvent() addChildren(adds); if (!updates.isEmpty()) updateChildren(updates); - processFileEventRuning = false; } void RootInfo::doThreadWatcherEvent()