Skip to content

Commit

Permalink
fix: Entering the empty directory on Android phones
Browse files Browse the repository at this point in the history
Retrieved the cache and determined that when entering the directory, if there are no files in the cached directory, iterate again

Log: Entering the empty directory on Android phones
Bug: https://pms.uniontech.com/bug-view-192655.html
  • Loading branch information
liyigang1 committed Apr 12, 2023
1 parent c8dd256 commit a3b5f15
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/plugins/common/core/dfmplugin-trashcore/trashcore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ void TrashCore::initialize()
TrashCoreEventSender::instance();

DFMBASE_NAMESPACE::UrlRoute::regScheme(TrashCoreHelper::scheme(), "/", TrashCoreHelper::icon(), true, tr("Trash"));
DFMBASE_NAMESPACE::InfoFactory::regClass<TrashFileInfo>(TrashCoreHelper::scheme());
DFMBASE_NAMESPACE::InfoFactory::regClass<TrashFileInfo>(TrashCoreHelper::scheme(), DFMBASE_NAMESPACE::InfoFactory::kNoCache);

dpfSlotChannel->connect(DPF_MACRO_TO_STR(DPTRASHCORE_NAMESPACE), "slot_TrashCore_EmptyTrash",
TrashCoreEventReceiver::instance(), &TrashCoreEventReceiver::handleEmptyTrash);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ void RootInfo::startWork(const QString &key, const bool getCache)

if (!traversalThreads.contains(key))
return;
if (getCache)
if (getCache && !sourceDataList.isEmpty())
return handleGetSourceData(key);

currentKey = key;
Expand Down

0 comments on commit a3b5f15

Please sign in to comment.