[Device Monitor] Create KFilePlacesModel on demand
ClosedPublic

Authored by broulik on Jun 27 2018, 9:13 AM.

Details

Summary

Doing so can be quite expensive as it queries devices and what not.
This is particularly wasteful if the user doesn't have any Bluetooth devices or no browsable.

Test Plan

No longer creates a model for me. Verified that pairing and unpairing browsable devices still properly updates places.

Diff Detail

Repository
R97 Bluedevil
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.Jun 27 2018, 9:13 AM
Restricted Application added a project: Plasma. · View Herald TranscriptJun 27 2018, 9:13 AM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
broulik requested review of this revision.Jun 27 2018, 9:13 AM
drosca accepted this revision.Jun 27 2018, 9:16 AM
This revision is now accepted and ready to land.Jun 27 2018, 9:16 AM
This revision was automatically updated to reflect the committed changes.