feat: added filter for fans in the portal view based on the popup settings

This commit is contained in:
Serhiy Mytrovtsiy
2024-02-19 22:15:38 +01:00
parent 032877c4c2
commit 90ef1b1818

View File

@@ -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 })
}