feat: enabled HID sensors for macs with M1 by default

This commit is contained in:
Serhiy Mytrovtsiy
2022-01-23 12:16:54 +01:00
parent edfb564bab
commit 94ec6a2a41
2 changed files with 8 additions and 1 deletions

View File

@@ -14,7 +14,7 @@ import Kit
internal class Settings: NSStackView, Settings_v {
private var updateIntervalValue: Int = 3
private var hidState: Bool = false
private var hidState: Bool
private var fanSpeedState: Bool = false
private let title: String
@@ -28,6 +28,7 @@ internal class Settings: NSStackView, Settings_v {
public init(_ title: String, list: [Sensor_p]) {
self.title = title
self.list = list
self.hidState = isM1 ? true : false
super.init(frame: NSRect(x: 0, y: 0, width: 0, height: 0))