X-Git-Url: http://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=src%2Fui_sensorpref.c;h=0704710d8bc67ed2be4e6752ef4dbe717f5ee07e;hb=0acbbfd3bee0ebad1faae5b8314aea10a9cc123e;hp=5ed1e4967732c117307ea93034f7eb9c36e15377;hpb=39897615ff371e114e74dea464737df98c0684c6;p=psensor.git diff --git a/src/ui_sensorpref.c b/src/ui_sensorpref.c index 5ed1e49..0704710 100644 --- a/src/ui_sensorpref.c +++ b/src/ui_sensorpref.c @@ -341,12 +341,12 @@ static void update_pref(struct psensor *s) gtk_toggle_button_set_active(w_sensor_alarm, config_get_sensor_alarm_enabled(s->id)); - threshold = config_get_sensor_alarm_high_threshold(s->id); + threshold = s->alarm_high_threshold; if (!use_celsius) threshold = celsius_to_fahrenheit(threshold); gtk_spin_button_set_value(w_sensor_high_threshold, threshold); - threshold = config_get_sensor_alarm_low_threshold(s->id); + threshold = s->alarm_low_threshold; if (!use_celsius) threshold = celsius_to_fahrenheit(threshold); gtk_spin_button_set_value(w_sensor_low_threshold, threshold);