fix: fixed enabling widget when toggling some option in the settings when the module is disabled

This commit is contained in:
Serhiy Mytrovtsiy
2021-08-15 13:03:28 +02:00
parent d4e9148349
commit f12b123e3d
9 changed files with 16 additions and 8 deletions

View File

@@ -72,7 +72,7 @@ public class Bluetooth: Module {
}
private func batteryCallback(_ raw: [BLEDevice]?) {
guard let value = raw else {
guard let value = raw, self.enabled else {
return
}