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

@@ -109,7 +109,7 @@ public class GPU: Module {
}
private func infoCallback(_ raw: GPUs?) {
guard raw != nil && !raw!.list.isEmpty, let value = raw else {
guard raw != nil && !raw!.list.isEmpty, let value = raw, self.enabled else {
return
}