Skip to content

Commit

Permalink
fix: Unable to drag tar.gz compressed file to USB drive
Browse files Browse the repository at this point in the history
The first time a drag enters a fileino, create and cache it, modify permissions, and the infocache does not update the properties of the fileinfo. It does not start the monitor. Modifying the start monitor

Log: Unable to drag tar.gz compressed file to USB drive
Bug: https://pms.uniontech.com/bug-view-235885.html
  • Loading branch information
liyigang1 committed Dec 27, 2023
1 parent 8752c5b commit 4612d84
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/dfm-base/utils/infocache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ void InfoCache::cacheInfo(const QUrl url, const FileInfoPointer info)
&InfoCache::removeCache);
connect(watcher.data(), &AbstractFileWatcher::subfileCreated, this,
&InfoCache::refreshFileInfo);
watcher->startWatcher();
}
watcher->addCacheInfoConnectSize();
}
Expand Down Expand Up @@ -277,7 +278,7 @@ void InfoCache::refreshFileInfo(const QUrl &url)
{
FileInfoPointer info = getCacheInfo(url);
if (info)
info->refresh();
info->updateAttributes();
}
/*!
* \brief timeRemoveCache 定时检查哪些fileinfo要移除
Expand Down

0 comments on commit 4612d84

Please sign in to comment.