feat: changed the order of sensors in the settings

This commit is contained in:
Serhiy Mytrovtsiy
2021-11-05 19:12:31 +01:00
parent 716b6a6a26
commit fa2f1d913e
2 changed files with 1 additions and 2 deletions

View File

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

View File

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