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

@@ -123,7 +123,7 @@ public class CPU: Module {
}
private func loadCallback(_ raw: CPU_Load?) {
guard let value = raw else {
guard let value = raw, self.enabled else {
return
}