Refactor enableBluetooth function

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

Description

Refactor enableBluetooth function

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

Reviewers: Plasma, jgrulich

Reviewed By: jgrulich

Subscribers: plasma-devel

Tags: Plasma

Differential Revision: https://phabricator.kde.org/D28714

Details

Committed
nicolasfellaApr 14 2020, 2:57 PM
Reviewer
jgrulich
Differential Revision
D28714: Refactor enableBluetooth function
Parents
R116:b494e08b9bfa: [Applet] Port to ExpandableListItem
Branches
Unknown
Tags
Unknown