From fa2f1d913e13ceffe7324eb4c997264be1b7be6f Mon Sep 17 00:00:00 2001 From: Serhiy Mytrovtsiy Date: Fri, 5 Nov 2021 19:12:31 +0100 Subject: [PATCH] feat: changed the order of sensors in the settings --- Modules/Sensors/bridge.h | 1 - Modules/Sensors/settings.swift | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Modules/Sensors/bridge.h b/Modules/Sensors/bridge.h index 3a076b9b..a3181925 100644 --- a/Modules/Sensors/bridge.h +++ b/Modules/Sensors/bridge.h @@ -34,7 +34,6 @@ typedef enum AppleSiliconSensorType: NSUInteger { IOHIDEventSystemClientRef IOHIDEventSystemClientCreate(CFAllocatorRef allocator); int IOHIDEventSystemClientSetMatching(IOHIDEventSystemClientRef client, CFDictionaryRef match); IOHIDEventRef IOHIDServiceClientCopyEvent(IOHIDServiceClientRef, int64_t , int32_t, int64_t); -CFStringRef IOHIDServiceClientCopyProperty(IOHIDServiceClientRef service, CFStringRef property); IOHIDFloat IOHIDEventGetFloatValue(IOHIDEventRef event, int32_t field); NSDictionary*AppleSiliconSensors(int page, int usage, int32_t type); diff --git a/Modules/Sensors/settings.swift b/Modules/Sensors/settings.swift index 5d0c64d6..b53188fc 100644 --- a/Modules/Sensors/settings.swift +++ b/Modules/Sensors/settings.swift @@ -66,7 +66,7 @@ internal class Settings: NSStackView, Settings_v { selected: "\(self.updateIntervalValue) sec" )) - types.reversed().forEach { (typ: SensorType) in + types.forEach { (typ: SensorType) in let header = NSStackView() header.heightAnchor.constraint(equalToConstant: Constants.Settings.row).isActive = true header.spacing = 0