From 90ef1b1818e2ee1b075a3630ddae5067bf0b3836 Mon Sep 17 00:00:00 2001 From: Serhiy Mytrovtsiy Date: Mon, 19 Feb 2024 22:15:38 +0100 Subject: [PATCH] feat: added filter for fans in the portal view based on the popup settings --- Modules/Sensors/portal.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Modules/Sensors/portal.swift b/Modules/Sensors/portal.swift index 082c453d..18ed6ef7 100644 --- a/Modules/Sensors/portal.swift +++ b/Modules/Sensors/portal.swift @@ -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 }) }