Refactor enableBluetooth function
ClosedPublic

Authored by nicolasfella on Apr 10 2020, 12:28 AM.

Details

Summary

The code has quite some boilerplate and high levels of indentation, resulting in poor readability. Factoring out the DBus boilerplate makes it easier to focus on the essential parts.

Test Plan

(de)activated flight mode. Bluetooth was (dis)abled accordingly

Diff Detail

Repository
R116 Plasma Network Management Applet
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
nicolasfella created this revision.Apr 10 2020, 12:28 AM
Restricted Application added a project: Plasma. · View Herald TranscriptApr 10 2020, 12:28 AM
Restricted Application added a reviewer: jgrulich. · View Herald Transcript
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
nicolasfella requested review of this revision.Apr 10 2020, 12:28 AM
jgrulich accepted this revision.Apr 14 2020, 11:30 AM
This revision is now accepted and ready to land.Apr 14 2020, 11:30 AM
This revision was automatically updated to reflect the committed changes.