mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-14 00:04:15 +09:00
fix: fixed hiding "Sensor to show" when toggle "HID sensors" or "Show unknown sensors" in the sensors module (#2390)
This commit is contained in:
@@ -148,8 +148,6 @@ internal class Settings: NSStackView, Settings_v {
|
||||
if let row = self.sensorsPrefs?.findRow("active_sensor") {
|
||||
if !widgets.isEmpty {
|
||||
self.sensorsPrefs?.setRowVisibility(row, newState: widgets.contains(where: { $0 == .mini }))
|
||||
} else {
|
||||
self.sensorsPrefs?.setRowVisibility(row, newState: false)
|
||||
}
|
||||
row.replaceComponent(with: selectView(
|
||||
action: #selector(self.handleSelection),
|
||||
|
||||
Reference in New Issue
Block a user