fix: fixed a race condition when switching the Unknown sensors (#1241)

This commit is contained in:
Serhiy Mytrovtsiy
2022-12-22 18:13:34 +01:00
parent 3bd0160cf2
commit 1680b9331b
5 changed files with 27 additions and 32 deletions

View File

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