feat: added M2 sensors support (#1012)

This commit is contained in:
Serhiy Mytrovtsiy
2022-08-27 15:35:26 +02:00
parent ab2b0efab2
commit 135eacec90
6 changed files with 193 additions and 179 deletions

View File

@@ -29,7 +29,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
self.hidState = SystemKit.shared.device.platform == .m1 ? true : false
super.init(frame: NSRect(x: 0, y: 0, width: 0, height: 0))