mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-14 00:04:15 +09:00
feat: resetting the fans mode when uninstalling the fan helper
This commit is contained in:
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user