Skip to content

Commit

Permalink
fix: After cutting and pasting the SMB remote connection file, Ctrl+Z…
Browse files Browse the repository at this point in the history
… undo will cause display errors

Timing issue, thread processFileEventRunning flag set too late for processing file information

Log: After cutting and pasting the SMB remote connection file, Ctrl+Z undo will cause display errors
Bug: https://pms.uniontech.com/bug-view-258017.html https://pms.uniontech.com/bug-view-259321.html
  • Loading branch information
liyigang1 authored and deepin-bot[bot] committed Jul 1, 2024
1 parent 01ac25b commit dffded2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down Expand Up @@ -303,6 +303,7 @@ void RootInfo::doWatcherEvent()
removes.append(fileUrl);
}
}
processFileEventRuning = false;

// 处理添加文件
if (!removes.isEmpty())
Expand All @@ -311,7 +312,6 @@ void RootInfo::doWatcherEvent()
addChildren(adds);
if (!updates.isEmpty())
updateChildren(updates);
processFileEventRuning = false;
}

void RootInfo::doThreadWatcherEvent()
Expand Down

0 comments on commit dffded2

Please sign in to comment.