mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-14 00:04:15 +09:00
fix: fixed enabling widget when toggling some option in the settings when the module is disabled
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user