Always periodically dispatch pending items
ClosedPublic

Authored by broulik on Aug 26 2019, 7:53 AM.

Details

Summary

"Local" URLs can also be slow.
This might jeopardize loading large local directories where a resorting could take place but imho it's better than leaving the user wondering when files will finally show up. However, it takes some time for KDirLister to initially signal items having been added, and only then our 2 second timer starts.
Also, stop the timer when loading has completed.

Test Plan
  • Entered a very slow mount, got files to show up periodically. The first time it takes like five seconds but after that you get files in a steady 2 second pace

Diff Detail

Repository
R318 Dolphin
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
broulik created this revision.Aug 26 2019, 7:53 AM
Restricted Application added a project: Dolphin. · View Herald TranscriptAug 26 2019, 7:53 AM
Restricted Application added a subscriber: kfm-devel. · View Herald Transcript
broulik requested review of this revision.Aug 26 2019, 7:53 AM
broulik added a reviewer: dfaure.
ngraham accepted this revision.Aug 26 2019, 1:36 PM
ngraham added a subscriber: ngraham.

This is a much nicer behavior.

This revision is now accepted and ready to land.Aug 26 2019, 1:36 PM
This revision was automatically updated to reflect the committed changes.