diff --git a/Modules/Fans/popup.swift b/Modules/Fans/popup.swift
index 4de1c4ee..effadc0b 100644
--- a/Modules/Fans/popup.swift
+++ b/Modules/Fans/popup.swift
@@ -65,15 +65,15 @@ internal class Popup: NSView, Popup_p {
}
internal func usageCallback(_ values: [Fan]) {
- values.forEach { (f: Fan) in
- if self.list[f.id] != nil {
- DispatchQueue.main.async(execute: {
- if self.window?.isVisible ?? false {
+ DispatchQueue.main.async(execute: {
+ if self.window?.isVisible ?? false {
+ values.forEach { (f: Fan) in
+ if self.list[f.id] != nil {
self.list[f.id]?.update(f)
}
- })
+ }
}
- }
+ })
}
}
diff --git a/Modules/Sensors/popup.swift b/Modules/Sensors/popup.swift
index 7fa1f851..f47d6892 100644
--- a/Modules/Sensors/popup.swift
+++ b/Modules/Sensors/popup.swift
@@ -74,14 +74,14 @@ internal class Popup: NSView, Popup_p {
}
internal func usageCallback(_ values: [Sensor_t]) {
- values.forEach { (s: Sensor_t) in
- if self.list[s.key] != nil {
- DispatchQueue.main.async(execute: {
- if (self.window?.isVisible ?? false) {
+ DispatchQueue.main.async(execute: {
+ if (self.window?.isVisible ?? false) {
+ values.forEach { (s: Sensor_t) in
+ if self.list[s.key] != nil {
self.list[s.key]?.stringValue = s.formattedValue
}
- })
+ }
}
- }
+ })
}
}
diff --git a/Stats/Supporting Files/Info.plist b/Stats/Supporting Files/Info.plist
index 457d845d..2c4676dd 100755
--- a/Stats/Supporting Files/Info.plist
+++ b/Stats/Supporting Files/Info.plist
@@ -17,7 +17,7 @@
CFBundleShortVersionString
$(MARKETING_VERSION)
CFBundleVersion
- 174
+ 175
Description
Simple macOS system monitor in your menu bar
LSApplicationCategoryType