bluez-utils instead of python-pybluez #72

This commit is contained in:
piotr
2021-12-14 01:08:23 +01:00
parent e69b01d93b
commit 0005c1db1f
6 changed files with 37 additions and 18 deletions

View File

@@ -1903,7 +1903,11 @@ class EditorWrapper(object):
self.ctrl_comp_net.set_active("net" in settings["components"])
self.ctrl_comp_bluetooth = builder.get_object("ctrl-comp-bluetooth")
self.ctrl_comp_bluetooth.set_active("bluetooth" in settings["components"])
if is_command("btmgmt"):
self.ctrl_comp_bluetooth.set_active("bluetooth" in settings["components"])
else:
self.ctrl_comp_bluetooth.set_active(False)
self.ctrl_comp_bluetooth.set_sensitive(False)
self.ctrl_comp_battery = builder.get_object("ctrl-comp-battery")
self.ctrl_comp_battery.set_active("battery" in settings["components"])