feat: resetting the fans mode when uninstalling the fan helper

This commit is contained in:
Serhiy Mytrovtsiy
2023-01-28 16:59:50 +01:00
parent 81ca1059ff
commit 9f559f92e9

View File

@@ -1176,6 +1176,11 @@ public class SMCHelper {
}
public func uninstall() {
if let count = SMC.shared.getValue("FNum") {
for i in 0..<Int(count) {
self.setFanMode(i, mode: 0)
}
}
guard let helper = self.helper(nil) else { return }
helper.uninstall()
NotificationCenter.default.post(name: .fanHelperState, object: nil, userInfo: ["state": false])