mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-14 00:04:15 +09:00
fix: fixed a race condition when switching the Unknown sensors (#1241)
This commit is contained in:
@@ -166,7 +166,7 @@ internal class Settings: NSStackView, Settings_v {
|
||||
}
|
||||
|
||||
public func setList(list: [Sensor_p]) {
|
||||
self.list = list
|
||||
self.list = self.unknownSensorsState ? list : list.filter({ $0.group != .unknown })
|
||||
self.load(widgets: self.widgets)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user