mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-14 00:04:15 +09:00
feat: moved all modules to the new way of reader mode with a small refactoring
This commit is contained in:
@@ -25,9 +25,9 @@ internal class SensorsReader: Reader<Sensors_List> {
|
||||
}
|
||||
private var unknownSensorsState: Bool
|
||||
|
||||
init() {
|
||||
init(callback: @escaping (T?) -> Void = {_ in }) {
|
||||
self.unknownSensorsState = Store.shared.bool(key: "Sensors_unknown", defaultValue: false)
|
||||
super.init(.sensors)
|
||||
super.init(.sensors, callback: callback)
|
||||
self.list.sensors = self.sensors()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user