feat: adjust the order of sensors in the settings to be the same as in the popup view

This commit is contained in:
Serhiy Mytrovtsiy
2021-11-18 16:00:45 +01:00
parent 83e474a944
commit 5d4a55c398

View File

@@ -98,8 +98,8 @@ internal class Settings: NSStackView, Settings_v {
)
container.spacing = 0
groups.reversed().forEach { (group: SensorGroup) in
filtered.reversed().filter{ $0.group == group }.forEach { (s: Sensor_p) in
groups.forEach { (group: SensorGroup) in
filtered.filter{ $0.group == group }.forEach { (s: Sensor_p) in
let row: NSView = toggleSettingRow(
title: s.name,
action: #selector(self.handleSelection),