fix: fixed hiding "Sensor to show" when toggle "HID sensors" or "Show unknown sensors" in the sensors module (#2390)

This commit is contained in:
Serhiy Mytrovtsiy
2025-02-13 21:27:29 +01:00
parent 61c5e0df77
commit 136a31dbbb

View File

@@ -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),