[Folder View] Don't spawn multiple stat jobs for the same folder
ClosedPublic

Authored by broulik on Jul 12 2018, 12:01 PM.

Details

Summary

Check for one already running before spawning a new one.
Also move the check for the isDirCache in one.

Test Plan

My .desktop files pointing to folders are still treated as folders
Doesn't spawn a gazillion of identical jobs on startup anymore

Diff Detail

Repository
R119 Plasma Desktop
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.Jul 12 2018, 12:01 PM
Restricted Application added a project: Plasma. · View Herald TranscriptJul 12 2018, 12:01 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
broulik requested review of this revision.Jul 12 2018, 12:01 PM
broulik updated this revision to Diff 37644.Jul 12 2018, 12:18 PM
  • Add job error check
hein accepted this revision.Jul 12 2018, 12:35 PM
This revision is now accepted and ready to land.Jul 12 2018, 12:35 PM
This revision was automatically updated to reflect the committed changes.