Skip to content

Commit d7c27bb

Browse files
committed
Fix v1 sensor configuration
1 parent f14af64 commit d7c27bb

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

open_earable/lib/controls_tab/views/v1_sensor_configuration.dart

+9-3
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,9 @@ class _V1SensorConfigurationCardState extends State<V1SensorConfigurationCard> {
125125
});
126126
}
127127
}, (String newValue) {
128-
OpenEarableSettings().selectedImuOption = newValue;
128+
setState(() {
129+
OpenEarableSettings().selectedImuOption = newValue;
130+
});
129131
}),
130132
_sensorConfigurationRow(
131133
"Barometer",
@@ -139,7 +141,9 @@ class _V1SensorConfigurationCardState extends State<V1SensorConfigurationCard> {
139141
});
140142
}
141143
}, (String newValue) {
142-
OpenEarableSettings().selectedBarometerOption = newValue;
144+
setState(() {
145+
OpenEarableSettings().selectedBarometerOption = newValue;
146+
});
143147
}),
144148
_sensorConfigurationRow(
145149
"Microphone",
@@ -151,7 +155,9 @@ class _V1SensorConfigurationCardState extends State<V1SensorConfigurationCard> {
151155
OpenEarableSettings().microphoneSettingSelected = newValue!;
152156
});
153157
}, (String newValue) {
154-
OpenEarableSettings().selectedMicrophoneOption = newValue;
158+
setState(() {
159+
OpenEarableSettings().selectedMicrophoneOption = newValue;
160+
});
155161
}),
156162
SizedBox(height: 8),
157163
Row(

0 commit comments

Comments
 (0)