X-Git-Url: http://git.wpitchoune.net/gitweb/?p=psensor.git;a=blobdiff_plain;f=src%2Fui_sensorlist.c;h=bb9a4ec931731c2582a50d6a0fefe1000ba2594b;hp=f9b5fba17092f2517d45c0137bb64c0a62a38e8f;hb=51450a36b7143fe230197dfa89b5fd072af7421c;hpb=270d8e258b541a4e481c7323a2c1feb49f19dc2e diff --git a/src/ui_sensorlist.c b/src/ui_sensorlist.c index f9b5fba..bb9a4ec 100644 --- a/src/ui_sensorlist.c +++ b/src/ui_sensorlist.c @@ -110,7 +110,10 @@ void ui_sensorlist_update(struct ui_psensor *ui, bool complete) store = ui->sensors_store; - use_celsius = ui->config->temperature_unit == CELSIUS; + if (config_get_temperature_unit() == CELSIUS) + use_celsius = 1; + else + use_celsius = 0; valid = gtk_tree_model_get_iter_first(model, &iter); while (valid) {