mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-14 00:04:15 +09:00
feat: added filter for fans in the portal view based on the popup settings
This commit is contained in:
@@ -61,6 +61,7 @@ public class Portal: NSStackView, Portal_p {
|
||||
|
||||
public func setup(_ values: [Sensor_p]? = nil) {
|
||||
guard var list = values else { return }
|
||||
list = list.filter{ $0.popupState }
|
||||
if !self.unknownSensorsState {
|
||||
list = list.filter({ $0.group != .unknown })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user