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

@@ -133,7 +133,7 @@ public class Network: Module {
}
private func usageCallback(_ raw: Network_Usage?) {
guard let value = raw else {
guard let value = raw, self.enabled else {
return
}