mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-14 00:04:15 +09:00
feat: hide the fan controls if the fan cannot be controlled (hackintosh)
(prev commit: feat: added a new battery level key to the Bluetooth battery reader (#920))
This commit is contained in:
@@ -346,7 +346,9 @@ internal class FanView: NSStackView {
|
||||
self.layer?.backgroundColor = NSColor.red.cgColor
|
||||
|
||||
self.addArrangedSubview(self.nameAndSpeed())
|
||||
self.addArrangedSubview(self.mode())
|
||||
if self.fan.maxSpeed != self.fan.minSpeed {
|
||||
self.addArrangedSubview(self.mode())
|
||||
}
|
||||
|
||||
if let view = self.controlView, fan.mode == .forced {
|
||||
self.addArrangedSubview(view)
|
||||
|
||||
Reference in New Issue
Block a user